diff options
author | Weblate <noreply@weblate.org> | 2018-03-10 15:09:31 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2018-03-10 15:09:31 +0000 |
commit | e823783499a7b2f8c3cbfb24ae428b39311bee5e (patch) | |
tree | 74138f1e34b8f090f62bd5412f38b8e185209302 /src-qt5/core/lumina-desktop-unified/src-desktop/desktop.pri | |
parent | Translated using Weblate (Italian) (diff) | |
parent | Add the beginnings of the new window frame (widgets-based) (diff) | |
download | lumina-e823783499a7b2f8c3cbfb24ae428b39311bee5e.tar.gz lumina-e823783499a7b2f8c3cbfb24ae428b39311bee5e.tar.bz2 lumina-e823783499a7b2f8c3cbfb24ae428b39311bee5e.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-desktop/desktop.pri')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-desktop/desktop.pri | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/desktop.pri b/src-qt5/core/lumina-desktop-unified/src-desktop/desktop.pri index e4c4faeb..89542e23 100644 --- a/src-qt5/core/lumina-desktop-unified/src-desktop/desktop.pri +++ b/src-qt5/core/lumina-desktop-unified/src-desktop/desktop.pri @@ -1,11 +1,32 @@ -QT *= gui widgets qml quick - -SOURCES *= $${PWD}/RootWindow.cpp - -HEADERS *= $${PWD}/RootWindow.h +QT *= gui widgets #update the includepath so we can just #include as needed without paths INCLUDEPATH *= $${PWD} +SOURCES *= $${PWD}/Desktopmanager.cpp \ + $${PWD}/QMLImageProvider.cpp + +HEADERS *= $${PWD}/RootWindow.h \ + $${PWD}/DesktopManager.h + +#include the base objects include($${PWD}/src-cpp/src-cpp.pri) -include($${PWD}/src-qml/src-qml.pri) + +#Now do the QML/Widgets interface switch +isEmpty(USE_QML){ + #Widgets-based interface + DEFINES += USE_WIDGETS="true" + + SOURCES *= $${PWD}/RootWindow-Widgets.cpp + + include($${PWD}/src-widgets/src-widgets.pri) + +}else{ + #QML-based interface + QT *= qml quick + DEFINES += USE_QML="true" + SOURCES *= $${PWD}/RootWindow-QML.cpp + HEADERS *= $${PWD}/QMLImageProvider.h + + include($${PWD}/src-qml/src-qml.pri) +} |