Changeset 6160 for trunk/qt4-gui/src/userevents
- Timestamp:
- 04/18/08 09:40:19 (8 months ago)
- Location:
- trunk/qt4-gui/src/userevents
- Files:
-
- 3 modified
-
usereventcommon.h (modified) (1 diff)
-
usersendcommon.cpp (modified) (1 diff)
-
userviewevent.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/userevents/usereventcommon.h
r6108 r6160 124 124 void finished(QString id, unsigned long ppid); 125 125 void encodingChanged(); 126 void viewUrl(QWidget*, QString);127 126 }; 128 127 -
trunk/qt4-gui/src/userevents/usersendcommon.cpp
r6157 r6160 404 404 gUserManager.DropUser(u); 405 405 406 connect(myHistoryView, SIGNAL(viewurl(QWidget*, QString)),407 LicqGui::instance(), SLOT(viewUrl(QWidget*, QString)));408 406 connect(gMainWindow, SIGNAL(signal_sentevent(ICQEvent*)), 409 407 myHistoryView, SLOT(addMsg(ICQEvent*))); -
trunk/qt4-gui/src/userevents/userviewevent.cpp
r6108 r6160 91 91 connect(gMainWindow, SIGNAL(signal_sentevent(ICQEvent*)), 92 92 SLOT(sentEvent(ICQEvent*))); 93 connect(myMessageView, SIGNAL(viewurl(QWidget*, QString)),94 LicqGui::instance(), SLOT(viewUrl(QWidget*, QString)));95 93 96 94 QGroupBox* h_action = new QGroupBox(); … … 404 402 url.prepend("file://"); 405 403 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 417 406 break; 418 407 } … … 590 579 591 580 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()); 593 582 break; 594 583 } // switch
