Reworking CliParser to allow building quasselcore always without KDE deps
[quassel.git] / src / core / coreapplication.h
index 07fa582..ecf4f6d 100644 (file)
 #ifndef COREAPPLICATION_H_
 #define COREAPPLICATION_H_
 
-#include <QCoreApplication>
+#ifdef HAVE_KDE
+#  include <KApplication>
+#else
+#  include <QCoreApplication>
+#endif
 
 #include "quassel.h"
 
@@ -36,12 +40,13 @@ class CoreApplicationInternal {
     ~CoreApplicationInternal();
 
     bool init();
-    
+
   private:
     bool _coreCreated;
 };
 
 class CoreApplication : public QCoreApplication, public Quassel {
+
   Q_OBJECT
   public:
     CoreApplication(int &argc, char **argv);