Helpviewer/WebPlugins/ClickToFlash/ClickToFlashWhitelistDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to manage the ClickToFlash whitelist. 7 Module implementing a dialog to manage the ClickToFlash whitelist.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import pyqtSlot, Qt 12 from PyQt4.QtCore import pyqtSlot, Qt
11 from PyQt4.QtGui import QDialog, QStringListModel, QSortFilterProxyModel, \ 13 from PyQt4.QtGui import QDialog, QStringListModel, QSortFilterProxyModel, \
12 QInputDialog, QLineEdit 14 QInputDialog, QLineEdit
13 15
25 Constructor 27 Constructor
26 28
27 @param whitelist list of whitelisted hosts (list of string) 29 @param whitelist list of whitelisted hosts (list of string)
28 @param parent reference to the parent widget (QWidget) 30 @param parent reference to the parent widget (QWidget)
29 """ 31 """
30 super().__init__(parent) 32 super(ClickToFlashWhitelistDialog, self).__init__(parent)
31 self.setupUi(self) 33 self.setupUi(self)
32 34
33 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("flashBlock48.png")) 35 self.iconLabel.setPixmap(UI.PixmapCache.getPixmap("flashBlock48.png"))
34 36
35 self.__model = QStringListModel(whitelist[:], self) 37 self.__model = QStringListModel(whitelist[:], self)

eric ide

mercurial