Show
Ignore:
Timestamp:
04/18/08 09:40:19 (8 months ago)
Author:
eugene
Message:
  • Somewhat remade the chat settings page layout to make it look good in non-KDE mode;
  • fixed some typos;
  • simplified URL viewer invocation (no more signals);
  • made KDE mode be fully dependent on desktop setting of browser/mailer, while non-KDE mode can still fallback to daemon's settings in case Qt autodetection failes (current Qt rules could be found here: http://psi-im.org/wiki/Browser_X11).
Location:
trunk/qt4-gui/src/userevents
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/userevents/usereventcommon.h

    r6108 r6160  
    124124  void finished(QString id, unsigned long ppid); 
    125125  void encodingChanged(); 
    126   void viewUrl(QWidget*, QString); 
    127126}; 
    128127 
  • trunk/qt4-gui/src/userevents/usersendcommon.cpp

    r6157 r6160  
    404404    gUserManager.DropUser(u); 
    405405 
    406     connect(myHistoryView, SIGNAL(viewurl(QWidget*, QString)), 
    407         LicqGui::instance(), SLOT(viewUrl(QWidget*, QString))); 
    408406    connect(gMainWindow, SIGNAL(signal_sentevent(ICQEvent*)), 
    409407        myHistoryView, SLOT(addMsg(ICQEvent*))); 
  • trunk/qt4-gui/src/userevents/userviewevent.cpp

    r6108 r6160  
    9191  connect(gMainWindow, SIGNAL(signal_sentevent(ICQEvent*)), 
    9292      SLOT(sentEvent(ICQEvent*))); 
    93   connect(myMessageView, SIGNAL(viewurl(QWidget*, QString)), 
    94       LicqGui::instance(), SLOT(viewUrl(QWidget*, QString))); 
    9593 
    9694  QGroupBox* h_action = new QGroupBox(); 
     
    404402      url.prepend("file://"); 
    405403 
    406 #ifdef USE_KDE 
    407       // If no URL viewer is set, use KDE default 
    408       if (!gLicqDaemon->getUrlViewer()) 
    409         KToolInvocation::invokeBrowser(url); 
    410       else 
    411 #endif 
    412       { 
    413         if (!gLicqDaemon->ViewUrl(url.toLocal8Bit().data())) 
    414           WarnUser(this, tr("Licq is unable to start your browser and open the URL.\n" 
    415                 "You will need to start the browser and open the URL manually.")); 
    416       } 
     404      LicqGui::instance()->viewUrl(url); 
     405 
    417406      break; 
    418407    } 
     
    590579 
    591580    case ICQ_CMDxSUB_URL:   // view a url 
    592       emit viewUrl(this, dynamic_cast<CEventUrl*>(myCurrentEvent)->Url()); 
     581      LicqGui::instance()->viewUrl(dynamic_cast<CEventUrl*>(myCurrentEvent)->Url()); 
    593582      break; 
    594583  } // switch