10 import time |
10 import time |
11 |
11 |
12 from PyQt4.QtCore import * |
12 from PyQt4.QtCore import * |
13 from PyQt4.QtGui import * |
13 from PyQt4.QtGui import * |
14 |
14 |
15 from E4Gui.E4Completers import E4FileCompleter |
15 from E5Gui.E5Completers import E5FileCompleter |
16 |
16 |
17 from .Ui_TaskPropertiesDialog import Ui_TaskPropertiesDialog |
17 from .Ui_TaskPropertiesDialog import Ui_TaskPropertiesDialog |
18 |
18 |
19 |
19 |
20 class TaskPropertiesDialog(QDialog, Ui_TaskPropertiesDialog): |
20 class TaskPropertiesDialog(QDialog, Ui_TaskPropertiesDialog): |
30 @param projectOpen flag indicating status of the project (boolean) |
30 @param projectOpen flag indicating status of the project (boolean) |
31 """ |
31 """ |
32 QDialog.__init__(self, parent) |
32 QDialog.__init__(self, parent) |
33 self.setupUi(self) |
33 self.setupUi(self) |
34 |
34 |
35 self.filenameCompleter = E4FileCompleter(self.filenameEdit) |
35 self.filenameCompleter = E5FileCompleter(self.filenameEdit) |
36 |
36 |
37 if not projectOpen: |
37 if not projectOpen: |
38 self.projectCheckBox.setEnabled(False) |
38 self.projectCheckBox.setEnabled(False) |
39 if task is not None: |
39 if task is not None: |
40 self.descriptionEdit.setText(task.description) |
40 self.descriptionEdit.setText(task.description) |