X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fqtuiapplication.cpp;h=b6f9ca314ad13e32c14dec48edc3c47a6e1d548d;hp=7f5189fa4ed855a96a3fbb0609392461844e7cb8;hb=f824db0e31b54969e0b7fa0b5405b1e9173d482c;hpb=5cb19c841e567f26c34e77dbe254e530efacd6b3 diff --git a/src/qtui/qtuiapplication.cpp b/src/qtui/qtuiapplication.cpp index 7f5189fa..b6f9ca31 100644 --- a/src/qtui/qtuiapplication.cpp +++ b/src/qtui/qtuiapplication.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel IRC Team * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -47,16 +47,16 @@ // } 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); + qInstallMsgHandler(Client::logMessage); } bool QtUiApplication::init() {