diff options
author | Ken Moore <ken@pcbsd.org> | 2014-12-18 07:47:48 -0500 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-12-18 07:47:48 -0500 |
commit | 71c2fda95224f0a04316c5f1059628d33564ca43 (patch) | |
tree | ca74dbe49dd2f555e73893e7f5f06154d6dab763 /lumina-config | |
parent | Oops, forgot to add knowledge of the new "Wine" app category to the userbutton. (diff) | |
download | lumina-71c2fda95224f0a04316c5f1059628d33564ca43.tar.gz lumina-71c2fda95224f0a04316c5f1059628d33564ca43.tar.bz2 lumina-71c2fda95224f0a04316c5f1059628d33564ca43.zip |
Commit a checkpoint on the conversion of Lumina to Qt5.
It is functional at the moment, but still has a few rough edges with regards to the X11 background interface (due to the move from XLib to XCB in Qt5). This reulst in some of the window manager interactions not behaving properly (such as sticky status on panels).
Diffstat (limited to 'lumina-config')
-rw-r--r-- | lumina-config/lumina-config.pro | 15 | ||||
-rw-r--r-- | lumina-config/main.cpp | 18 |
2 files changed, 14 insertions, 19 deletions
diff --git a/lumina-config/lumina-config.pro b/lumina-config/lumina-config.pro index ff8211b3..ec6d09e3 100644 --- a/lumina-config/lumina-config.pro +++ b/lumina-config/lumina-config.pro @@ -1,5 +1,6 @@ QT += core gui +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets x11extras network TARGET = lumina-config isEmpty(PREFIX) { @@ -34,17 +35,17 @@ FORMS += mainUI.ui \ INCLUDEPATH += ../libLumina $$PREFIX/include LIBS += -L../libLumina -lLuminaUtils -freebsd-* { - LIBS += -lQtSolutions_SingleApplication-head -} -openbsd-g++4 { - LIBS += -lQtSolutions_SingleApplication-head -} +#freebsd-* { +# LIBS += -lQtSolutions_SingleApplication-head +#} +#openbsd-g++4 { +# LIBS += -lQtSolutions_SingleApplication-head +#} openbsd-g++4 { LRELEASE = lrelease4 } else { - LRELEASE = lrelease-qt4 + LRELEASE = $$PREFIX/lib/qt5/bin/lrelease } QMAKE_LIBDIR = ../libLumina diff --git a/lumina-config/main.cpp b/lumina-config/main.cpp index 27af600d..af5c0ab9 100644 --- a/lumina-config/main.cpp +++ b/lumina-config/main.cpp @@ -1,25 +1,19 @@ #include <QTranslator> -#ifdef __FreeBSD__ - #include <qtsingleapplication.h> -#endif -#include <QtGui/QApplication> +#include <QApplication> #include <QDebug> #include <QFile> #include "mainUI.h" #include <LuminaOS.h> #include <LuminaThemes.h> +#include <LuminaSingleApplication.h> int main(int argc, char ** argv) { - #ifndef __FreeBSD__ - QApplication a(argc, argv); - #else - QtSingleApplication a(argc, argv); - if( a.isRunning() ) - return !(a.sendMessage("show")); - #endif + LSingleApplication a(argc, argv); + if(!a.isPrimaryProcess()){ return 0; } + LuminaThemeEngine theme(&a); QTranslator translator; QLocale mylocale; @@ -32,7 +26,7 @@ int main(int argc, char ** argv) MainUI w; - QObject::connect(&a, SIGNAL(messageReceived(const QString&)), &w, SLOT(slotSingleInstance()) ); + QObject::connect(&a, SIGNAL(InputsAvailable(QStringList)), &w, SLOT(slotSingleInstance()) ); QObject::connect(&theme, SIGNAL(updateIcons()), &w, SLOT(setupIcons()) ); w.show(); |