Changeset 6048

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

Enable KDE4 support.

Location:
branches/qt-gui_qt4
Files:
23 modified

Legend:

Unmodified
Added
Removed
  • branches/qt-gui_qt4/CMakeLists.txt

    r5888 r6048  
    7070set(QT_MIN_VERSION "4.3.0") 
    7171 
    72 find_package(Qt4 REQUIRED) 
     72# Check for Qt unless WITH_KDE is requested 
     73if (NOT WITH_KDE) 
     74  find_package(Qt4 REQUIRED) 
     75else (NOT WITH_KDE) 
     76  find_package(KDE4 REQUIRED) 
     77  set(USE_KDE ${KDE4_FOUND}) 
     78 
     79  # FindKDE4Internal adds "-Wl,--no-undefined" to the linker command 
     80  # line. This doesn't work for use, since all symbols from the daemon 
     81  # are undefined. So we remove it. 
     82  string(REPLACE "-Wl,--no-undefined" "" 
     83    CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}") 
     84 
     85  # FindKDE4Internal adds "-fvisibility=hidden" to the compiler 
     86  # command line. This hides symbols in the plugin that the daemon 
     87  # looks for. So we remove it. 
     88  string(REPLACE "-fvisibility=hidden" "" 
     89    CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") 
     90 
     91  add_definitions(${KDE4_DEFINITIONS}) 
     92  link_directories(${KDE4_LIB_DIR}) 
     93 
     94  include_directories(${KDE4_INCLUDE_DIR}) 
     95  set(LIBRARIES ${LIBRARIES} 
     96    ${KDE4_KDECORE_LIBS} 
     97    ${KDE4_KDEUI_LIBS} 
     98    ${KDE4_KIO_LIBS}) 
     99endif (NOT WITH_KDE) 
     100 
    73101include_directories(${QT_INCLUDE_DIR} 
    74102  ${QT_QTCORE_INCLUDE_DIR} 
     
    89117  set(LIBRARIES ${LIBRARIES} ${GPGME_LIBRARIES}) 
    90118endif (GPGME_FOUND) 
    91  
    92  
    93 # Optional, check for KDE4 
    94 if (WITH_KDE) 
    95   message(FATAL_ERROR "KDE4 not yet supported. Please compile without KDE support.") 
    96   find_package(KDE4 REQUIRED) 
    97   set(USE_KDE ${KDE4_FOUND}) 
    98  
    99   add_definitions(${KDE4_DEFINITIONS}) 
    100   link_directories(${KDE4_LIB_DIR}) 
    101   include_directories(${KDE4_INCLUDE_DIR}) 
    102   set(LIBRARIES ${LIBRARIES} kdeui kio kabc) 
    103 endif (WITH_KDE) 
    104119 
    105120 
  • branches/qt-gui_qt4/src/config/general.cpp

    r6042 r6048  
    2525#include <QApplication> 
    2626#include <QDesktopWidget> 
     27 
     28#ifdef USE_KDE 
     29#include <KDE/KGlobalSettings> 
     30#endif 
    2731 
    2832#include <licq_file.h> 
  • branches/qt-gui_qt4/src/core/CMakeLists.txt

    r5777 r6048  
    1010 
    1111# KDE specific stuff 
    12 if (WITH_KDE) 
    13   list(APPEND core_SRCS licqkimiface.cpp wrap_kde_malloc.cpp) 
     12# if (WITH_KDE) 
     13#   list(APPEND core_SRCS licqkimiface.cpp wrap_kde_malloc.cpp) 
    1414 
    15   kde4_add_dcop_skels(core_SRCS kimiface.h) 
    16   kde4_add_dcop_stubs(core_SRCS kimiface.h) 
    17 endif (WITH_KDE) 
     15#   kde4_add_dcop_skels(core_SRCS kimiface.h) 
     16#   kde4_add_dcop_stubs(core_SRCS kimiface.h) 
     17# endif (WITH_KDE) 
    1818 
    1919string(REGEX REPLACE ".cpp" ".h" core_HDRS "${core_SRCS}") 
  • 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 
  • branches/qt-gui_qt4/src/core/licqgui.h

    r6043 r6048  
    2424 
    2525#ifdef USE_KDE 
    26 #include <kapp.h> 
     26#include <KDE/KApplication> 
    2727#else 
    2828#include <QApplication> 
  • branches/qt-gui_qt4/src/core/mainwin.cpp

    r6045 r6048  
    2727 
    2828#ifdef USE_KDE 
    29 #include <kapp.h> 
    30 #include <kglobal.h> 
    31 #include <kglobalsettings.h> 
    32 #include <kstandarddirs.h> 
    33 #include <kwin.h> 
    34 #include <kiconloader.h> 
    35 #include <kurl.h> 
    36 #include <kpassivepopup.h> 
     29#include <KDE/KApplication> 
     30#include <KDE/KGlobal> 
     31#include <KDE/KGlobalSettings> 
     32#include <KDE/KStandardDirs> 
     33#include <KDE/KWindowSystem> 
     34#include <KDE/KIconLoader> 
     35#include <KDE/KUrl> 
     36#include <KDE/KPassivePopup> 
    3737#else 
    3838#include <QApplication> 
     
    105105 
    106106#ifdef USE_KDE 
    107     #include "licqkimiface.h" 
    108     #include "dcopclient.h" 
     107// TODO 
     108// #include "licqkimiface.h" 
     109// #include "dcopclient.h" 
    109110#endif 
    110111 
     
    256257 
    257258#ifdef USE_KDE 
     259  /* TODO 
    258260  kdeIMInterface = new LicqKIMIface(KApplication::dcopClient()->appId(), this); 
    259261  connect(kdeIMInterface, 
     
    271273      SIGNAL(addUser(const char*, unsigned long)), 
    272274      SLOT(addUser(const char*, unsigned long))); 
     275  */ 
    273276#endif 
    274277 
     
    276279  { 
    277280#ifdef USE_KDE 
    278     kdeIMInterface->addProtocol((*_ppit)->Name(), (*_ppit)->PPID()); 
     281    // TODO 
     282    // kdeIMInterface->addProtocol((*_ppit)->Name(), (*_ppit)->PPID()); 
    279283#endif 
    280284    if ((*_ppit)->PPID() != LICQ_PPID) // XXX To be removed later 
     
    316320    show(); 
    317321#ifdef USE_KDE 
    318     KWin::setOnDesktop(winId(), KWin::currentDesktop()); 
     322    KWindowSystem::setOnDesktop(winId(), KWindowSystem::currentDesktop()); 
    319323#endif 
    320324    if (isMaximized()) 
     
    581585    case USER_STATUS: 
    582586#ifdef USE_KDE 
    583       kdeIMInterface->userStatusChanged(id, ppid); 
     587      // TODO 
     588      // kdeIMInterface->userStatusChanged(id, ppid); 
    584589#endif 
    585590    case USER_BASIC: 
     
    635640          alias.replace(QChar('>'), "&gt;"); 
    636641 
    637           QString msg(tr("%1 is online")).arg("<b>" + alias + "</b>"); 
     642          QString msg(tr("%1 is online").arg("<b>" + alias + "</b>")); 
    638643          QPixmap px = IconManager::instance()->iconForStatus(u->StatusFull(), u->IdString(), u->PPID()); 
    639           KPassivePopup::message("Licq", msg, px, LicqGui::instance()->dockIcon(), NULL, 4000); 
     644          KPassivePopup::message("Licq", msg, px, LicqGui::instance()->dockIcon(), 4000); 
    640645        } 
    641646#endif 
     
    939944 
    940945#ifdef USE_KDE 
    941     // let KDE IM interface know about the new protocol 
    942     kdeIMInterface->addProtocol(QString(pName), nPPID); 
     946  // TODO 
     947  // let KDE IM interface know about the new protocol 
     948  // kdeIMInterface->addProtocol(QString(pName), nPPID); 
    943949#endif 
    944950} 
     
    10061012 
    10071013#ifdef USE_KDE 
    1008   kdeIMInterface->removeProtocol(_nPPID); 
     1014  // TODO 
     1015  // kdeIMInterface->removeProtocol(_nPPID); 
    10091016#endif 
    10101017} 
  • branches/qt-gui_qt4/src/core/messagebox.cpp

    r5892 r6048  
    3737 
    3838#ifdef USE_KDE 
    39 #include <kapp.h> 
    40 #include <kiconloader.h> 
    41 #include <kmessagebox.h> 
     39#include <KDE/KApplication> 
     40#include <KDE/KIconLoader> 
     41#include <KDE/KMessageBox> 
    4242#endif 
    4343 
     
    6565#ifdef USE_KDE 
    6666  result = (KMessageBox::questionYesNo(q, szQuery, QMessageBox::tr("Licq Question"), 
    67         szBtn1, szBtn2, QString::null, false) == KMessageBox::Yes); 
     67        KGuiItem(szBtn1), KGuiItem(szBtn2)) == KMessageBox::Yes); 
    6868  // The user must confirm his decision! 
    69   if (result == true && bConfirmYes && szConfirmYes) 
    70     result = (KMessageBox::questionYesNo(q, szConfirmYes, QMessageBox::tr("Licq Question"), 
    71           QMessageBox::tr("Yes"), QMessageBox::tr("No"), QString::null, false) == KMessageBox::Yes); 
    72   else if (result == false && bConfirmNo && szConfirmNo) 
    73     result = (KMessageBox::questionYesNo(q, szConfirmNo, QMessageBox::tr("Licq Question"), 
    74           QMessageBox::tr("Yes"), QMessageBox::tr("No"), QString::null, false) == KMessageBox::Yes); 
     69  if (result == true && bConfirmYes && !szConfirmYes.isEmpty()) 
     70    result = (KMessageBox::questionYesNo(q, szConfirmYes, 
     71          QMessageBox::tr("Licq Question")) == KMessageBox::Yes); 
     72  else if (result == false && bConfirmNo && !szConfirmNo.isEmpty()) 
     73    result = (KMessageBox::questionYesNo(q, szConfirmNo, 
     74          QMessageBox::tr("Licq Question")) == KMessageBox::Yes); 
    7575#else 
    7676  result = (QMessageBox::question(q, QMessageBox::tr("Licq Question"), szQuery, 
     
    407407  } 
    408408 
    409   QPixmap icon = KApplication::kApplication()->iconLoader()->loadIcon(iconName, 
    410     KIcon::NoGroup, KIcon::SizeMedium, KIcon::DefaultState, 0, true); 
     409  QPixmap icon = KIconLoader::global()->loadIcon(iconName, 
     410    KIconLoader::NoGroup, KIconLoader::SizeMedium, KIconLoader::DefaultState, 
     411    QStringList(), 0, true); 
    411412  if (icon.isNull()) 
    412413    icon = QMessageBox::standardIcon(type); 
  • branches/qt-gui_qt4/src/core/plugin.cpp

    r5945 r6048  
    2424#include <QString> 
    2525#include <QStyleFactory> 
     26 
     27#ifdef USE_KDE 
     28#include <KDE/KCmdLineArgs> 
     29#endif 
    2630 
    2731#include <licq_log.h> 
     
    120124  // Don't use the KDE crash handler (drkonqi). 
    121125  setenv("KDE_DEBUG", "true", 0); 
     126 
     127  KCmdLineArgs::init(myArgc, myArgv, 
     128                     "licq", "qt4-gui", 
     129                     ki18n(LP_Name()), VERSION); 
    122130#endif 
    123131 
  • branches/qt-gui_qt4/src/dialogs/filedlg.cpp

    r5892 r6048  
    252252  QString d; 
    253253#ifdef USE_KDE 
    254   d = KFileDialog::getExistingDirectory(QString(QDir::homeDirPath()), this); 
     254  d = KFileDialog::getExistingDirectory(QString(QDir::homePath()), this); 
    255255#else 
    256256  d = QFileDialog::getExistingDirectory(this, QString(), QDir::homePath()); 
  • branches/qt-gui_qt4/src/dialogs/logwindow.cpp

    r5837 r6048  
    3434 
    3535#ifdef USE_KDE 
    36 #include <kfiledialog.h> 
     36#include <KDE/KFileDialog> 
    3737#else 
    3838#include <QFileDialog> 
     
    122122 
    123123#ifdef USE_KDE 
    124   KURL u = KFileDialog::getSaveURL(QString(QDir::homePath() + "/licq.log"), 
     124  KUrl u = KFileDialog::getSaveUrl(QString(QDir::homePath() + "/licq.log"), 
    125125      QString::null, this); 
    126126  fn = u.path(); 
  • branches/qt-gui_qt4/src/dialogs/plugindlg.cpp

    r5892 r6048  
    312312    (*sit).remove(0, 5); 
    313313    (*sit).truncate((*sit).length() - 3); 
    314     if (::find(lLoadedSPlugins.begin(), lLoadedSPlugins.end(), (*sit).toStdString()) != lLoadedSPlugins.end()) 
     314    if (::find(lLoadedSPlugins.begin(), lLoadedSPlugins.end(), 
     315               (*sit).toAscii().constData()) != lLoadedSPlugins.end()) 
    315316      continue; 
    316317 
     
    363364    (*sit).remove(0, 9); 
    364365    (*sit).truncate((*sit).length() - 3); 
    365     if (::find(lLoadedPPlugins.begin(), lLoadedPPlugins.end(), (*sit).toStdString()) != lLoadedPPlugins.end()) 
     366    if (::find(lLoadedPPlugins.begin(), lLoadedPPlugins.end(), 
     367               (*sit).toAscii().constData()) != lLoadedPPlugins.end()) 
    366368      continue; 
    367369 
  • branches/qt-gui_qt4/src/dialogs/userinfodlg.cpp

    r6001 r6048  
    4545 
    4646#ifdef USE_KDE 
    47 #include <kfiledialog.h> 
     47#include <KDE/KFileDialog> 
    4848#include <kdeversion.h> 
    49 #include <kabc/stdaddressbook.h> 
    50 #include <kabc/addressee.h> 
    51 #include <kabc/addresseedialog.h> 
    52 #include "licqkimiface.h" 
    53 #define USE_KABC 
     49 
     50// TODO 
     51//#include <kabc/stdaddressbook.h> 
     52//#include <kabc/addressee.h> 
     53//#include <kabc/addresseedialog.h> 
     54//#include "licqkimiface.h" 
     55//#define USE_KABC 
    5456#else 
    5557#include <QFileDialog> 
     
    21302132    { 
    21312133#ifdef USE_KDE 
    2132       Filename = KFileDialog::getOpenFileName(QString::null, 
     2134      Filename = KFileDialog::getOpenFileName(KUrl(), 
    21332135          "Images (*.bmp *.jpg *.jpeg *.jpe *.gif)", this, 
    21342136          tr("Select your picture")); 
  • branches/qt-gui_qt4/src/helpers/support.cpp

    r5901 r6048  
    2525 
    2626#if defined(USE_KDE) 
    27 #include <kwin.h> 
     27#include <KDE/KWindowSystem> 
    2828#endif 
    2929 
     
    4949 
    5050#if defined(USE_KDE) 
    51   KWin::setOnAllDesktops(win, stick); 
     51  KWindowSystem::setOnAllDesktops(win, stick); 
    5252#elif defined(Q_WS_X11) 
    5353 
  • branches/qt-gui_qt4/src/settings/events.cpp

    r5991 r6048  
    2929#include <QVBoxLayout> 
    3030 
     31#ifdef USE_KDE 
     32#include <KDE/KUrlRequester> 
     33#include <QLineEdit> 
     34#endif 
     35 
    3136#include <licq_icqd.h> 
    3237#include <licq_onevent.h> 
     
    159164  laySndTopRow->addWidget(lblSndPlayer); 
    160165 
    161   edtSndPlayer = new KURLRequester(); 
     166  edtSndPlayer = new KUrlRequester(); 
    162167  edtSndPlayer->setToolTip(lblSndPlayer->toolTip()); 
    163168  lblSndPlayer->setBuddy(edtSndPlayer); 
     
    171176  lblSndMsg->setToolTip(tr("Parameter for received messages")); 
    172177  layEventParams->addWidget(lblSndMsg, 0, 0); 
    173   edtSndMsg = new KURLRequester(); 
     178  edtSndMsg = new KUrlRequester(); 
    174179  edtSndMsg->setToolTip(lblSndMsg->toolTip()); 
    175180  lblSndMsg->setBuddy(edtSndMsg); 
     
    179184  lblSndUrl->setToolTip(tr("Parameter for received URLs")); 
    180185  layEventParams->addWidget(lblSndUrl, 1, 0); 
    181   edtSndUrl = new KURLRequester(); 
     186  edtSndUrl = new KUrlRequester(); 
    182187  edtSndUrl->setToolTip(lblSndUrl->toolTip()); 
    183188  lblSndUrl->setBuddy(edtSndUrl); 
     
    187192  lblSndChat->setToolTip(tr("Parameter for received chat requests")); 
    188193  layEventParams->addWidget(lblSndChat, 2, 0); 
    189   edtSndChat = new KURLRequester(); 
     194  edtSndChat = new KUrlRequester(); 
    190195  edtSndChat->setToolTip(lblSndChat->toolTip()); 
    191196  lblSndChat->setBuddy(edtSndChat); 
     
    195200  lblSndFile->setToolTip(tr("Parameter for received file transfers")); 
    196201  layEventParams->addWidget(lblSndFile, 3, 0); 
    197   edtSndFile = new KURLRequester(); 
     202  edtSndFile = new KUrlRequester(); 
    198203  edtSndFile->setToolTip(lblSndFile->toolTip()); 
    199204  lblSndFile->setBuddy(edtSndFile); 
     
    203208  lblSndNotify->setToolTip(tr("Parameter for online notification")); 
    204209  layEventParams->addWidget(lblSndNotify, 4, 0); 
    205   edtSndNotify = new KURLRequester(); 
     210  edtSndNotify = new KUrlRequester(); 
    206211  edtSndNotify->setToolTip(lblSndNotify->toolTip()); 
    207212  lblSndNotify->setBuddy(edtSndNotify); 
     
    211216  lblSndSysMsg->setToolTip(tr("Parameter for received system messages")); 
    212217  layEventParams->addWidget(lblSndSysMsg, 5, 0); 
    213   edtSndSysMsg = new KURLRequester(); 
     218  edtSndSysMsg = new KUrlRequester(); 
    214219  edtSndSysMsg->setToolTip(lblSndSysMsg->toolTip()); 
    215220  lblSndSysMsg->setBuddy(edtSndSysMsg); 
     
    219224  lblSndMsgSent->setToolTip(tr("Parameter for sent messages")); 
    220225  layEventParams->addWidget(lblSndMsgSent, 6, 0); 
    221   edtSndMsgSent = new KURLRequester(); 
     226  edtSndMsgSent = new KUrlRequester(); 
    222227  edtSndMsgSent->setToolTip(lblSndMsgSent->toolTip()); 
    223228  lblSndMsgSent->setBuddy(edtSndMsgSent); 
     
    303308  chkOnEvents->setChecked(oem->CommandType() != ON_EVENT_IGNORE); 
    304309  oem->Lock(); 
    305   edtSndPlayer->setURL(oem->Command()); 
    306   edtSndMsg->setURL(oem->Parameter(ON_EVENT_MSG)); 
    307   edtSndUrl->setURL(oem->Parameter(ON_EVENT_URL)); 
    308   edtSndChat->setURL(oem->Parameter(ON_EVENT_CHAT)); 
    309   edtSndFile->setURL(oem->Parameter(ON_EVENT_FILE)); 
    310   edtSndNotify->setURL(oem->Parameter(ON_EVENT_NOTIFY)); 
    311   edtSndSysMsg->setURL(oem->Parameter(ON_EVENT_SYSMSG)); 
    312   edtSndMsgSent->setURL(oem->Parameter(ON_EVENT_MSGSENT)); 
     310  edtSndPlayer->setUrl(KUrl(oem->Command())); 
     311  edtSndMsg->setUrl(KUrl(oem->Parameter(ON_EVENT_MSG))); 
     312  edtSndUrl->setUrl(KUrl(oem->Parameter(ON_EVENT_URL))); 
     313  edtSndChat->setUrl(KUrl(oem->Parameter(ON_EVENT_CHAT))); 
     314  edtSndFile->setUrl(KUrl(oem->Parameter(ON_EVENT_FILE))); 
     315  edtSndNotify->setUrl(KUrl(oem->Parameter(ON_EVENT_NOTIFY))); 
     316  edtSndSysMsg->setUrl(KUrl(oem->Parameter(ON_EVENT_SYSMSG))); 
     317  edtSndMsgSent->setUrl(KUrl(oem->Parameter(ON_EVENT_MSGSENT))); 
    313318  oem->Unlock(); 
    314319  //TODO make general for all plugins 
     
    357362  oem->SetCommandType(chkOnEvents->isChecked() ? ON_EVENT_RUN : ON_EVENT_IGNORE); 
    358363 
    359   QString txtSndPlayer = edtSndPlayer->url(); 
    360   QString txtSndMsg = edtSndMsg->url(); 
    361   QString txtSndUrl = edtSndUrl->url(); 
    362   QString txtSndChat = edtSndChat->url(); 
    363   QString txtSndFile = edtSndFile->url(); 
    364   QString txtSndNotify = edtSndNotify->url(); 
    365   QString txtSndSysMsg = edtSndSysMsg->url(); 
    366   QString txtSndMsgSent = edtSndMsgSent->url(); 
     364  QString txtSndPlayer = edtSndPlayer->url().pathOrUrl(); 
     365  QString txtSndMsg = edtSndMsg->url().pathOrUrl(); 
     366  QString txtSndUrl = edtSndUrl->url().pathOrUrl(); 
     367  QString txtSndChat = edtSndChat->url().pathOrUrl(); 
     368  QString txtSndFile = edtSndFile->url().pathOrUrl(); 
     369  QString txtSndNotify = edtSndNotify->url().pathOrUrl(); 
     370  QString txtSndSysMsg = edtSndSysMsg->url().pathOrUrl(); 
     371  QString txtSndMsgSent = edtSndMsgSent->url().pathOrUrl(); 
    367372 
    368373  const char* oemparams[8] = { 
  • branches/qt-gui_qt4/src/settings/events.h

    r5837 r6048  
    3333 
    3434#ifdef USE_KDE 
    35 class KURLRequester; 
     35class KUrlRequester; 
     36class QLineEdit; 
    3637#else 
    3738#include <QLineEdit> 
    38 class KURLRequester : public QLineEdit 
     39class KUrl 
    3940{ 
    4041public: 
    41   KURLRequester(QWidget* parent=0, const char* /* name */ = NULL) 
     42  KUrl(const char* url) : myUrl(url) {} 
     43  KUrl(const QString& url) : myUrl(url) {} 
     44  QString pathOrUrl() const { return myUrl; } 
     45 
     46private: 
     47  QString myUrl; 
     48}; 
     49 
     50class KUrlRequester : public QLineEdit 
     51{ 
     52public: 
     53  KUrlRequester(QWidget* parent=0, const char* /* name */ = NULL) 
    4254    : QLineEdit(parent) {}; 
    43   void setURL(const QString& url) { setText(url); } 
    44   QString url() const { return text(); } 
     55  void setUrl(const KUrl& url) { setText(url.pathOrUrl()); } 
     56  KUrl url() const { return KUrl(text()); } 
    4557}; 
    4658#endif 
     
    121133  QLabel* lblSndSysMsg; 
    122134  QLabel* lblSndMsgSent; 
    123   KURLRequester* edtSndPlayer; 
    124   KURLRequester* edtSndMsg; 
    125   KURLRequester* edtSndChat; 
    126   KURLRequester* edtSndUrl; 
    127   KURLRequester* edtSndFile; 
    128   KURLRequester* edtSndNotify; 
    129   KURLRequester* edtSndSysMsg; 
    130   KURLRequester* edtSndMsgSent; 
     135  KUrlRequester* edtSndPlayer; 
     136  KUrlRequester* edtSndMsg; 
     137  KUrlRequester* edtSndChat; 
     138  KUrlRequester* edtSndUrl; 
     139  KUrlRequester* edtSndFile; 
     140  KUrlRequester* edtSndNotify; 
     141  KUrlRequester* edtSndSysMsg; 
     142  KUrlRequester* edtSndMsgSent; 
    131143}; 
    132144 
  • branches/qt-gui_qt4/src/settings/general.cpp

    r5991 r6048  
    3535#include <QVBoxLayout> 
    3636 
     37#ifdef USE_KDE 
     38#include <KDE/KFontDialog> 
     39#endif 
     40 
    3741#include <licq_constants.h> 
    3842 
  • branches/qt-gui_qt4/src/userevents/usereventcommon.cpp

    r6000 r6048  
    384384void UserEventCommon::