Show
Ignore:
Timestamp:
01/15/08 07:13:45 (10 months ago)
Author:
erijo
Message:

Enable KDE4 support.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/qt-gui_qt4/src/core/licqgui.cpp

    r6043 r6048  
    3737#include <QTranslator> 
    3838 
     39#ifdef USE_KDE 
     40#include <KDE/KStandardDirs> 
     41#include <KDE/KToolInvocation> 
     42#include <KDE/KUrl> 
     43#endif 
     44 
    3945#if defined(Q_WS_X11) 
    4046#include <QX11Info> 
     
    131137LicqGui* LicqGui::myInstance = NULL; 
    132138 
    133 LicqGui::LicqGui(int& argc, char** argv) 
    134 #ifdef USE_KDE 
    135   : KApplication(argc, argv, "licq"), 
    136 #else 
    137   : QApplication(argc, argv), 
     139LicqGui::LicqGui(int& argc, char** argv) : 
     140#ifndef USE_KDE 
     141  QApplication(argc, argv), 
    138142#endif 
    139143  myStartHidden(false), 
     
    10471051{ 
    10481052#ifdef USE_KDE 
    1049   KApplication* app = static_cast<KApplication*>(qApp); 
    10501053  if (url.startsWith("mailto:")) 
    1051     app->invokeMailer(KURL(url)); 
     1054    KToolInvocation::invokeMailer(KUrl(url)); 
    10521055  else 
    10531056  // If no URL viewer is set, use KDE default 
    10541057  if (!myLicqDaemon->getUrlViewer()) 
    1055     app->invokeBrowser(url); 
     1058    KToolInvocation::invokeBrowser(url); 
    10561059  else 
    10571060#else