4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to show the guards of a selected patch. |
7 Module implementing a dialog to show the guards of a selected patch. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
|
11 try: |
|
12 str = unicode |
|
13 except (NameError): |
|
14 pass |
9 |
15 |
10 import os |
16 import os |
11 |
17 |
12 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, QCoreApplication |
18 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, QCoreApplication |
13 from PyQt4.QtGui import QDialog, QListWidgetItem |
19 from PyQt4.QtGui import QDialog, QListWidgetItem |
28 |
34 |
29 @param vcs reference to the vcs object |
35 @param vcs reference to the vcs object |
30 @param patchesList list of patches (list of strings) |
36 @param patchesList list of patches (list of strings) |
31 @param parent reference to the parent widget (QWidget) |
37 @param parent reference to the parent widget (QWidget) |
32 """ |
38 """ |
33 super().__init__(parent) |
39 super(HgQueuesListGuardsDialog, self).__init__(parent) |
34 self.setupUi(self) |
40 self.setupUi(self) |
35 |
41 |
36 self.process = QProcess() |
42 self.process = QProcess() |
37 self.vcs = vcs |
43 self.vcs = vcs |
38 self.__hgClient = vcs.getClient() |
44 self.__hgClient = vcs.getClient() |