Add FIXME for color validation

This commit is contained in:
Florian Bruhin 2014-02-12 23:28:03 +01:00
parent 626b9fc3b8
commit 7bfc1eb791

View File

@ -137,6 +137,10 @@ class ColorDict(dict):
"""A dict aimed at Qt stylesheet colors.""" """A dict aimed at Qt stylesheet colors."""
# FIXME we should validate colors in __setitem__ based on:
# http://qt-project.org/doc/qt-4.8/stylesheet-reference.html#brush
# http://www.w3.org/TR/CSS21/syndata.html#color-units
def __getitem__(self, key): def __getitem__(self, key):
"""Override dict __getitem__. """Override dict __getitem__.