13 except NameError: |
13 except NameError: |
14 pass |
14 pass |
15 |
15 |
16 import os |
16 import os |
17 |
17 |
18 from PyQt5.QtCore import pyqtSlot, QProcess, QTimer, QCoreApplication |
18 from PyQt5.QtCore import pyqtSlot, Qt, QProcess, QTimer, QCoreApplication |
19 from PyQt5.QtWidgets import QDialog, QListWidgetItem |
19 from PyQt5.QtWidgets import QDialog, QListWidgetItem |
20 |
20 |
21 from .Ui_HgQueuesListGuardsDialog import Ui_HgQueuesListGuardsDialog |
21 from .Ui_HgQueuesListGuardsDialog import Ui_HgQueuesListGuardsDialog |
22 |
22 |
23 import UI.PixmapCache |
23 import UI.PixmapCache |
35 @param patchesList list of patches (list of strings) |
35 @param patchesList list of patches (list of strings) |
36 @param parent reference to the parent widget (QWidget) |
36 @param parent reference to the parent widget (QWidget) |
37 """ |
37 """ |
38 super(HgQueuesListGuardsDialog, self).__init__(parent) |
38 super(HgQueuesListGuardsDialog, self).__init__(parent) |
39 self.setupUi(self) |
39 self.setupUi(self) |
|
40 self.setWindowFlags(Qt.Window) |
40 |
41 |
41 self.process = QProcess() |
42 self.process = QProcess() |
42 self.vcs = vcs |
43 self.vcs = vcs |
43 self.__hgClient = vcs.getClient() |
44 self.__hgClient = vcs.getClient() |
44 |
45 |