7 Module implementing a dialog to list all files not tracked by Mercurial. |
7 Module implementing a dialog to list all files not tracked by Mercurial. |
8 """ |
8 """ |
9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
|
12 from PyQt5.QtCore import Qt |
12 from PyQt5.QtWidgets import QDialog |
13 from PyQt5.QtWidgets import QDialog |
13 |
14 |
14 from .Ui_HgPurgeListDialog import Ui_HgPurgeListDialog |
15 from .Ui_HgPurgeListDialog import Ui_HgPurgeListDialog |
15 |
16 |
16 |
17 |
25 @param entries list of entries to be shown (list of strings) |
26 @param entries list of entries to be shown (list of strings) |
26 @param parent reference to the parent widget (QWidget) |
27 @param parent reference to the parent widget (QWidget) |
27 """ |
28 """ |
28 super(HgPurgeListDialog, self).__init__(parent) |
29 super(HgPurgeListDialog, self).__init__(parent) |
29 self.setupUi(self) |
30 self.setupUi(self) |
|
31 self.setWindowFlags(Qt.Window) |
30 |
32 |
31 self.purgeList.addItems(sorted(entries)) |
33 self.purgeList.addItems(sorted(entries)) |