4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to show a list of applied and unapplied patches. |
7 Module implementing a dialog to show a list of applied and unapplied patches. |
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, Qt, QTimer, QCoreApplication |
18 from PyQt4.QtCore import pyqtSlot, QProcess, Qt, QTimer, QCoreApplication |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QHeaderView, QTreeWidgetItem, \ |
19 from PyQt4.QtGui import QDialog, QDialogButtonBox, QHeaderView, QTreeWidgetItem, \ |
29 Constructor |
35 Constructor |
30 |
36 |
31 @param vcs reference to the vcs object |
37 @param vcs reference to the vcs object |
32 @param parent parent widget (QWidget) |
38 @param parent parent widget (QWidget) |
33 """ |
39 """ |
34 super().__init__(parent) |
40 super(HgQueuesListDialog, self).__init__(parent) |
35 self.setupUi(self) |
41 self.setupUi(self) |
36 |
42 |
37 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
43 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
38 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
44 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
39 |
45 |