X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fqtuiapplication.cpp;h=108b4bfff2c6115f332672cf813d2ebdb771cc4a;hb=e531fd1f1ea36a360a9d876c94e73b0f3b1bcd22;hp=90e2739d5dd35a2e62ea1ca2721801f03630c516;hpb=034708a59ca1ee3195263a90941a2b145c520fef;p=quassel.git diff --git a/src/qtui/qtuiapplication.cpp b/src/qtui/qtuiapplication.cpp index 90e2739d..108b4bff 100644 --- a/src/qtui/qtuiapplication.cpp +++ b/src/qtui/qtuiapplication.cpp @@ -47,14 +47,14 @@ // } QtUiApplication::QtUiApplication(int &argc, char **argv) - : QApplication(argc, argv), Quassel() -{ - setRunMode(Quassel::ClientOnly); +#ifdef HAVE_KDE + : KApplication(), Quassel() { + Q_UNUSED(argc); Q_UNUSED(argv); +#else + : QApplication(argc, argv), Quassel() { +#endif - // put client-only arguments here - CliParser *parser = Quassel::cliParser(); - parser->addSwitch("debugbufferswitches",0,"Enables debugging for bufferswitches"); - parser->addSwitch("debugmodel",0,"Enables debugging for models"); + setRunMode(Quassel::ClientOnly); qInstallMsgHandler(Client::logMessage); }