Tasks/TaskPropertiesDialog.py

changeset 3990
5dd6edf8540a
parent 3656
441956d8fce5
child 4021
195a471c327b
diff -r 57354896fd29 -r 5dd6edf8540a Tasks/TaskPropertiesDialog.py
--- a/Tasks/TaskPropertiesDialog.py	Mon Dec 22 14:01:41 2014 +0100
+++ b/Tasks/TaskPropertiesDialog.py	Mon Dec 22 18:27:16 2014 +0100
@@ -60,7 +60,16 @@
         self.completedCheckBox.setEnabled(False)
         self.priorityCombo.setEnabled(False)
         self.projectCheckBox.setEnabled(False)
+    
+    def setSubTaskMode(self, projectTask):
+        """
+        Public slot to set the sub-task mode.
         
+        @param projectTask flag indicating a project related task (boolean)
+        """
+        self.projectCheckBox.setChecked(projectTask)
+        self.projectCheckBox.setEnabled(False)
+    
     def getData(self):
         """
         Public method to retrieve the dialogs data.

eric ide

mercurial