15 from E5Gui import E5FileDialog |
15 from E5Gui import E5FileDialog |
16 |
16 |
17 from .Ui_SqlConnectionDialog import Ui_SqlConnectionDialog |
17 from .Ui_SqlConnectionDialog import Ui_SqlConnectionDialog |
18 |
18 |
19 import Utilities |
19 import Utilities |
|
20 import UI.PixmapCache |
20 |
21 |
21 |
22 |
22 class SqlConnectionDialog(QDialog, Ui_SqlConnectionDialog): |
23 class SqlConnectionDialog(QDialog, Ui_SqlConnectionDialog): |
23 """ |
24 """ |
24 Class implementing a dialog to enter the connection parameters. |
25 Class implementing a dialog to enter the connection parameters. |
29 |
30 |
30 @param parent reference to the parent widget (QWidget) |
31 @param parent reference to the parent widget (QWidget) |
31 """ |
32 """ |
32 super().__init__(parent) |
33 super().__init__(parent) |
33 self.setupUi(self) |
34 self.setupUi(self) |
|
35 |
|
36 self.databaseFileButton.setIcon(UI.PixmapCache.getIcon("open.png")) |
34 |
37 |
35 self.databaseFileCompleter = E5FileCompleter() |
38 self.databaseFileCompleter = E5FileCompleter() |
36 |
39 |
37 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
40 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) |
38 |
41 |