From d2f751ef87c3af0a5b9091dd4c028dd62688fb35 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Thu, 11 Jul 2019 16:12:15 +0200 Subject: [PATCH] Moved linux specific code into linux sub folder --- src/FloatingDockContainer.cpp | 5 +++-- src/{ => linux}/FloatingWidgetTitleBar.cpp | 0 src/{ => linux}/FloatingWidgetTitleBar.h | 0 src/src.pro | 17 ++++++++++------- 4 files changed, 13 insertions(+), 9 deletions(-) rename src/{ => linux}/FloatingWidgetTitleBar.cpp (100%) rename src/{ => linux}/FloatingWidgetTitleBar.h (100%) diff --git a/src/FloatingDockContainer.cpp b/src/FloatingDockContainer.cpp index 56b499a..9efa8a3 100644 --- a/src/FloatingDockContainer.cpp +++ b/src/FloatingDockContainer.cpp @@ -48,11 +48,12 @@ #include "DockOverlay.h" #ifdef Q_OS_LINUX -#include "FloatingWidgetTitleBar.h" +#include "linux/FloatingWidgetTitleBar.h" +#include #endif #include -#include + namespace ads { diff --git a/src/FloatingWidgetTitleBar.cpp b/src/linux/FloatingWidgetTitleBar.cpp similarity index 100% rename from src/FloatingWidgetTitleBar.cpp rename to src/linux/FloatingWidgetTitleBar.cpp diff --git a/src/FloatingWidgetTitleBar.h b/src/linux/FloatingWidgetTitleBar.h similarity index 100% rename from src/FloatingWidgetTitleBar.h rename to src/linux/FloatingWidgetTitleBar.h diff --git a/src/src.pro b/src/src.pro index 2afe2ec..473b273 100644 --- a/src/src.pro +++ b/src/src.pro @@ -40,11 +40,9 @@ HEADERS += \ DockOverlay.h \ DockSplitter.h \ DockAreaTitleBar.h \ - ElidingLabel.h \ - FloatingWidgetTitleBar.h - - - + ElidingLabel.h + + SOURCES += \ ads_globals.cpp \ DockAreaWidget.cpp \ @@ -57,8 +55,13 @@ SOURCES += \ DockOverlay.cpp \ DockSplitter.cpp \ DockAreaTitleBar.cpp \ - ElidingLabel.cpp \ - FloatingWidgetTitleBar.cpp + ElidingLabel.cpp + + +unix { +HEADERS += linux/FloatingWidgetTitleBar.h +SOURCES += linux/FloatingWidgetTitleBar.cpp +} isEmpty(PREFIX){ PREFIX=..\installed