Helpviewer/OfflineStorage/WebDatabasesDialog.py

changeset 2223
054c285dab38
parent 1509
c0b5e693b0eb
child 2302
f29e9405c851
equal deleted inserted replaced
2222:105f425944a2 2223:054c285dab38
14 14
15 from .Ui_WebDatabasesDialog import Ui_WebDatabasesDialog 15 from .Ui_WebDatabasesDialog import Ui_WebDatabasesDialog
16 16
17 from .WebDatabasesModel import WebDatabasesModel 17 from .WebDatabasesModel import WebDatabasesModel
18 18
19 import UI.PixmapCache
20
21 19
22 class WebDatabasesDialog(QDialog, Ui_WebDatabasesDialog): 20 class WebDatabasesDialog(QDialog, Ui_WebDatabasesDialog):
23 """ 21 """
24 Class implementing a dialog to show all web databases. 22 Class implementing a dialog to show all web databases.
25 """ 23 """
29 27
30 @param parent reference to the parent widget (QWidget) 28 @param parent reference to the parent widget (QWidget)
31 """ 29 """
32 super().__init__(parent) 30 super().__init__(parent)
33 self.setupUi(self) 31 self.setupUi(self)
34
35 self.clearButton.setIcon(UI.PixmapCache.getIcon("clearLeft.png"))
36 32
37 self.removeButton.clicked.connect(self.databasesTree.removeSelected) 33 self.removeButton.clicked.connect(self.databasesTree.removeSelected)
38 self.removeAllButton.clicked.connect(self.databasesTree.removeAll) 34 self.removeAllButton.clicked.connect(self.databasesTree.removeAll)
39 35
40 model = WebDatabasesModel(self) 36 model = WebDatabasesModel(self)

eric ide

mercurial