Fixed a little bug related to styling of a task item. 6_0_x

Mon, 14 Sep 2015 19:01:02 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 14 Sep 2015 19:01:02 +0200
branch
6_0_x
changeset 4459
85544f1ce888
parent 4458
757d7591eab0
child 4460
3168cf53729c

Fixed a little bug related to styling of a task item.
(grafted from 6faeea06e9b6bc75d35d4971628204680cbb350f)

Tasks/Task.py file | annotate | diff | comparison | revisions
diff -r 757d7591eab0 -r 85544f1ce888 Tasks/Task.py
--- a/Tasks/Task.py	Sat Sep 12 15:25:11 2015 +0200
+++ b/Tasks/Task.py	Mon Sep 14 19:01:02 2015 +0200
@@ -111,6 +111,8 @@
         """
         boldFont = self.font(0)
         boldFont.setBold(True)
+        nonBoldFont = self.font(0)
+        nonBoldFont.setBold(False)
         for col in range(5):
             if self.taskType == Task.TypeFixme:
                 self.setBackground(
@@ -126,6 +128,8 @@
                     col, Preferences.getTasks("TasksNoteColor"))
             if self._isProjectTask:
                 self.setFont(col, boldFont)
+            else:
+                self.setFont(col, nonBoldFont)
     
     def setSummary(self, summary):
         """

eric ide

mercurial