]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/ColorCache.h
Do not show master's errors if compiling child
[lyx.git] / src / frontends / qt4 / ColorCache.h
index af767c3420614f3e2f710ec1b14a7e3a3b13fc8e..e1ad6aed5eaea665ca46ec07f6d2bb0b977cc111 100644 (file)
@@ -30,11 +30,17 @@ public:
        ///
        ColorCache() : initialized_(false) {}
 
+       /// get the given color (depends on LyXRC::use_system_color)
+       QColor get(Color const & color) const;
+
        /// get the given color
-       QColor get(Color color) const;
+       QColor get(Color const & color, bool use_system_colors) const;
+
+       /// is this color replaced when LyXRC::use_system_color is true?
+       bool isSystem(ColorCode color) const;
 
        /// change the undelying palette
-       void setPalette(QPalette const pal) { pal_ = pal; initialized_ = false; }
+       void setPalette(QPalette const pal) { pal_ = pal; clear(); }
 
        /// clear all colors
        void clear() { initialized_ = false; }
@@ -43,8 +49,6 @@ private:
        ///
        void init();
        ///
-       void setColor(int col, QPalette::ColorRole cr);
-       ///
        QColor lcolors_[Color_ignore + 1];
        ///
        bool initialized_;