Yearly copyright bump :)
[quassel.git] / src / qtui / qtuiapplication.cpp
index 7f5189f..b6f9ca3 100644 (file)
@@ -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  *
 // }
 
 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() {