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/widgets
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/widgets/mlview.cpp

    r6004 r6160  
    3434 
    3535#include "config/emoticons.h" 
     36#include "core/licqgui.h" 
    3637 
    3738using namespace LicqQtGui; 
     
    344345void MLView::setSource(const QUrl& url) 
    345346{ 
    346   QString name = url.toString(); 
    347   if (m_handleLinks && ((name.indexOf(QRegExp("^\\w+://")) > -1) || name.startsWith("mailto:"))) 
    348     emit viewurl(this, name); 
     347  if (m_handleLinks && !url.scheme().isEmpty()) 
     348    LicqGui::instance()->viewUrl(url.toString()); 
    349349} 
    350350 
  • trunk/qt4-gui/src/widgets/mlview.h

    r5998 r6160  
    6262 
    6363signals: 
    64   void viewurl(QWidget*, QString); 
    6564  void quote(const QString& text); 
    6665};