14 from E5Gui.E5Completers import E5FileCompleter |
14 from E5Gui.E5Completers import E5FileCompleter |
15 |
15 |
16 from .Ui_HgImportDialog import Ui_HgImportDialog |
16 from .Ui_HgImportDialog import Ui_HgImportDialog |
17 |
17 |
18 import Utilities |
18 import Utilities |
|
19 import UI.PixmapCache |
19 |
20 |
20 |
21 |
21 class HgImportDialog(QDialog, Ui_HgImportDialog): |
22 class HgImportDialog(QDialog, Ui_HgImportDialog): |
22 """ |
23 """ |
23 Class implementing a dialog to enter data for the Mercurial import command. |
24 Class implementing a dialog to enter data for the Mercurial import command. |
28 |
29 |
29 @param parent reference to the parent widget (QWidget) |
30 @param parent reference to the parent widget (QWidget) |
30 """ |
31 """ |
31 super().__init__(parent) |
32 super().__init__(parent) |
32 self.setupUi(self) |
33 self.setupUi(self) |
|
34 |
|
35 self.patchFileButton.setIcon(UI.PixmapCache.getIcon("open.png")) |
33 |
36 |
34 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
37 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
35 |
38 |
36 self.__patchFileCompleter = E5FileCompleter(self.patchFileEdit) |
39 self.__patchFileCompleter = E5FileCompleter(self.patchFileEdit) |
37 |
40 |