Added a bit of code to make eric 5.1 compatible with eric 5.2 settings. 5_1_x

Sat, 19 Mar 2011 16:08:57 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 19 Mar 2011 16:08:57 +0100
branch
5_1_x
changeset 951
08ecc72adb94
parent 950
1138e347c653
child 955
377efd9104a7

Added a bit of code to make eric 5.1 compatible with eric 5.2 settings.

Preferences/__init__.py file | annotate | diff | comparison | revisions
--- a/Preferences/__init__.py	Sat Mar 19 14:29:38 2011 +0100
+++ b/Preferences/__init__.py	Sat Mar 19 16:08:57 2011 +0100
@@ -1327,6 +1327,9 @@
     """
     col = prefClass.settings.value("Editor/Colour/" + key)
     if col is not None:
+        if len(col) == 9:
+            # color string with alpha
+            col = "#" + col[3:]
         return QtGui.QColor(col)
     else:
         return prefClass.editorColourDefaults[key]

eric ide

mercurial