11 try: |
11 try: |
12 str = unicode |
12 str = unicode |
13 except NameError: |
13 except NameError: |
14 pass |
14 pass |
15 |
15 |
16 from PyQt5.QtCore import pyqtSlot, QProcess, QCoreApplication |
16 from PyQt5.QtCore import pyqtSlot, Qt, QProcess, QCoreApplication |
17 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QAbstractItemView, \ |
17 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QAbstractItemView, \ |
18 QListWidgetItem, QAbstractButton |
18 QListWidgetItem, QAbstractButton |
19 |
19 |
20 from .Ui_HgQueuesQueueManagementDialog import Ui_HgQueuesQueueManagementDialog |
20 from .Ui_HgQueuesQueueManagementDialog import Ui_HgQueuesQueueManagementDialog |
21 |
21 |
43 @param parent reference to the parent widget (QWidget) |
43 @param parent reference to the parent widget (QWidget) |
44 @exception ValueError raised to indicate an invalid dialog mode |
44 @exception ValueError raised to indicate an invalid dialog mode |
45 """ |
45 """ |
46 super(HgQueuesQueueManagementDialog, self).__init__(parent) |
46 super(HgQueuesQueueManagementDialog, self).__init__(parent) |
47 self.setupUi(self) |
47 self.setupUi(self) |
|
48 self.setWindowFlags(Qt.Window) |
48 |
49 |
49 if mode not in (HgQueuesQueueManagementDialog.NO_INPUT, |
50 if mode not in (HgQueuesQueueManagementDialog.NO_INPUT, |
50 HgQueuesQueueManagementDialog.NAME_INPUT, |
51 HgQueuesQueueManagementDialog.NAME_INPUT, |
51 HgQueuesQueueManagementDialog.QUEUE_INPUT): |
52 HgQueuesQueueManagementDialog.QUEUE_INPUT): |
52 raise ValueError("illegal value for mode") |
53 raise ValueError("illegal value for mode") |