X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FColorCache.h;h=88db6bb565879a7991bb6e59ce1bc29c27927589;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=54768f612443b21e98ece648f5b113a139088e16;hpb=bbb9cb65e779ac3d1c563df1d44dab2236a7c1fd;p=lyx.git diff --git a/src/frontends/qt4/ColorCache.h b/src/frontends/qt4/ColorCache.h index 54768f6124..88db6bb565 100644 --- a/src/frontends/qt4/ColorCache.h +++ b/src/frontends/qt4/ColorCache.h @@ -12,7 +12,7 @@ #ifndef COLORCACHE_H #define COLORCACHE_H -#include "ColorCode.h" +#include "Color.h" #include @@ -26,19 +26,21 @@ struct RGBColor; class ColorCache { public: - ColorCache() { init(); } + ColorCache() : initialized_(false) {} /// get the given color - QColor const & get(ColorCode color) const { return lcolors_[color]; } + QColor get(Color color) const; /// clear all colors - void clear() { init(); } + void clear() { initialized_ = false; } private: /// void init(); /// QColor lcolors_[Color_ignore + 1]; + /// + bool initialized_; }; ///