Network/IRC/IrcChannelWidget.py

changeset 2442
1dcfd570fa12
parent 2302
f29e9405c851
child 2445
e3fadb2b85c7
equal deleted inserted replaced
2440:9a2d05a2f6d2 2442:1dcfd570fa12
7 Module implementing the IRC channel widget. 7 Module implementing the IRC channel widget.
8 """ 8 """
9 9
10 import re 10 import re
11 11
12 from PyQt4.QtCore import pyqtSlot, pyqtSignal, QDateTime, QPoint, QFileInfo, QTimer 12 from PyQt4.QtCore import pyqtSlot, pyqtSignal, QDateTime, QPoint, QFileInfo, QTimer, QUrl
13 from PyQt4.QtGui import QWidget, QListWidgetItem, QIcon, QPainter, QMenu, QApplication, \ 13 from PyQt4.QtGui import QWidget, QListWidgetItem, QIcon, QPainter, QMenu, QApplication, \
14 QInputDialog, QLineEdit, QTextCursor 14 QInputDialog, QLineEdit, QTextCursor, QDesktopServices
15 15
16 from E5Gui import E5MessageBox, E5FileDialog 16 from E5Gui import E5MessageBox, E5FileDialog
17 from E5Gui.E5Application import e5App 17 from E5Gui.E5Application import e5App
18 18
19 from .Ui_IrcChannelWidget import Ui_IrcChannelWidget 19 from .Ui_IrcChannelWidget import Ui_IrcChannelWidget
1671 QLineEdit.Normal, 1671 QLineEdit.Normal,
1672 self.topicLabel.text()) 1672 self.topicLabel.text())
1673 if ok and topic != "": 1673 if ok and topic != "":
1674 self.sendData.emit("TOPIC {0} :{1}".format( 1674 self.sendData.emit("TOPIC {0} :{1}".format(
1675 self.__name, topic)) 1675 self.__name, topic))
1676
1677 @pyqtSlot(QUrl)
1678 def on_messages_anchorClicked(self, url):
1679 """
1680 Private slot to open links in the default browser.
1681 """
1682 QDesktopServices.openUrl(url)

eric ide

mercurial