Network/IRC/IrcChannelWidget.py

branch
5_3_x
changeset 2443
df6c0224305f
parent 2302
f29e9405c851
child 2445
e3fadb2b85c7
--- a/Network/IRC/IrcChannelWidget.py	Sat Mar 02 15:11:29 2013 +0100
+++ b/Network/IRC/IrcChannelWidget.py	Sat Mar 02 15:45:29 2013 +0100
@@ -9,9 +9,9 @@
 
 import re
 
-from PyQt4.QtCore import pyqtSlot, pyqtSignal, QDateTime, QPoint, QFileInfo, QTimer
+from PyQt4.QtCore import pyqtSlot, pyqtSignal, QDateTime, QPoint, QFileInfo, QTimer, QUrl
 from PyQt4.QtGui import QWidget, QListWidgetItem, QIcon, QPainter, QMenu, QApplication, \
-    QInputDialog, QLineEdit, QTextCursor
+    QInputDialog, QLineEdit, QTextCursor, QDesktopServices
 
 from E5Gui import E5MessageBox, E5FileDialog
 from E5Gui.E5Application import e5App
@@ -1673,3 +1673,10 @@
         if ok and topic != "":
             self.sendData.emit("TOPIC {0} :{1}".format(
                 self.__name, topic))
+    
+    @pyqtSlot(QUrl)
+    def on_messages_anchorClicked(self, url):
+        """
+        Private slot to open links in the default browser.
+        """
+        QDesktopServices.openUrl(url)

eric ide

mercurial