Index: trunk-new/src/psiapplication.cpp =================================================================== --- trunk-new.orig/src/psiapplication.cpp 2008-08-02 22:55:32.000000000 +0300 +++ trunk-new/src/psiapplication.cpp 2008-08-02 23:00:19.000000000 +0300 @@ -1,5 +1,5 @@ /* - * psiapplication.cpp - subclass of QApplication to do some workarounds + * psiapplication.cpp - subclass of KApplication to do some workarounds * Copyright (C) 2003 Michail Pishchagin * * This program is free software; you can redistribute it and/or @@ -171,7 +171,7 @@ //---------------------------------------------------------------------------- PsiApplication::PsiApplication(int &argc, char **argv, bool GUIenabled) -: QApplication(argc, argv, GUIenabled) +: KApplication(GUIenabled) { init(GUIenabled); } Index: trunk-new/src/psiapplication.h =================================================================== --- trunk-new.orig/src/psiapplication.h 2008-08-02 22:55:29.000000000 +0300 +++ trunk-new/src/psiapplication.h 2008-08-02 22:57:08.000000000 +0300 @@ -21,14 +21,14 @@ #ifndef PSIAPPLICATION_H #define PSIAPPLICATION_H -#include +#include #ifdef Q_WS_MAC #include #endif class QEvent; -class PsiApplication : public QApplication +class PsiApplication : public KApplication { Q_OBJECT public: Index: trunk-new/src/main.cpp =================================================================== --- trunk-new.orig/src/main.cpp 2008-08-02 23:04:28.000000000 +0300 +++ trunk-new/src/main.cpp 2008-08-02 23:11:14.000000000 +0300 @@ -58,6 +58,12 @@ # include // for RegDeleteKey #endif +#ifdef Q_WS_X11 +# include +# include +# include +#endif + /** \mainpage Psi API Documentation * * \section intro_sec Indroduction @@ -276,6 +282,10 @@ { // it must be initialized first in order for ApplicationInfo::resourcesDir() to work QCA::Initializer init; + + KCmdLineArgs::init(argc, argv, QByteArray("Psi"), QByteArray("Psi"), ki18n("Psi"), + QByteArray("0.13-SVN"), ki18n("Jabber client")); + PsiApplication app(argc, argv); QApplication::addLibraryPath(ApplicationInfo::resourcesDir()); QApplication::addLibraryPath(ApplicationInfo::homeDir()); Index: trunk-new/src/src.pri =================================================================== --- trunk-new.orig/src/src.pri 2008-08-02 23:01:22.000000000 +0300 +++ trunk-new/src/src.pri 2008-08-02 23:02:31.000000000 +0300 @@ -443,5 +443,7 @@ QMAKE_LFLAGS += -framework Carbon -framework IOKit } +LIBS+=-lkdecore -lkdeui + INCLUDEPATH += $$PWD DEPENDPATH += $$PWD