]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt2/lcolorcache.h
The EnumLColor patch, free of macros.
[features.git] / src / frontends / qt2 / lcolorcache.h
index 05e045610f9c3de5fb9db003b3cc2155aec90c17..60ee45ff305ae64f5e81d0df3e71c65626218d9e 100644 (file)
 
 #include <map>
 
-#include "LColor.h"
-
 #include <qcolor.h>
 
+
+class EnumLColor;
+
+
 // FIXME: use a fixed-size array not a map ?
 
 /**
@@ -28,13 +30,13 @@ public:
        LColorCache();
 
        /// get the given color
-       QColor const & get(LColor::color color) const;
+       QColor const & get(EnumLColor color) const;
 
        /// clear all colors
        void clear();
 
 private:
-       typedef std::map<LColor::color, QColor> lcolor_map;
+       typedef std::map<EnumLColor, QColor> lcolor_map;
 
        mutable lcolor_map colormap;
 };