Changeset 6048 for branches/qt-gui_qt4/src/core/licqgui.cpp
- Timestamp:
- 01/15/08 07:13:45 (10 months ago)
- Files:
-
- 1 modified
-
branches/qt-gui_qt4/src/core/licqgui.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/qt-gui_qt4/src/core/licqgui.cpp
r6043 r6048 37 37 #include <QTranslator> 38 38 39 #ifdef USE_KDE 40 #include <KDE/KStandardDirs> 41 #include <KDE/KToolInvocation> 42 #include <KDE/KUrl> 43 #endif 44 39 45 #if defined(Q_WS_X11) 40 46 #include <QX11Info> … … 131 137 LicqGui* LicqGui::myInstance = NULL; 132 138 133 LicqGui::LicqGui(int& argc, char** argv) 134 #ifdef USE_KDE 135 : KApplication(argc, argv, "licq"), 136 #else 137 : QApplication(argc, argv), 139 LicqGui::LicqGui(int& argc, char** argv) : 140 #ifndef USE_KDE 141 QApplication(argc, argv), 138 142 #endif 139 143 myStartHidden(false), … … 1047 1051 { 1048 1052 #ifdef USE_KDE 1049 KApplication* app = static_cast<KApplication*>(qApp);1050 1053 if (url.startsWith("mailto:")) 1051 app->invokeMailer(KURL(url));1054 KToolInvocation::invokeMailer(KUrl(url)); 1052 1055 else 1053 1056 // If no URL viewer is set, use KDE default 1054 1057 if (!myLicqDaemon->getUrlViewer()) 1055 app->invokeBrowser(url);1058 KToolInvocation::invokeBrowser(url); 1056 1059 else 1057 1060 #else
