3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "ColorCache.h"
21 void ColorCache::init()
23 for (int col = 0; col <= Color_ignore; ++col)
24 lcolors_[col] = QColor(lcolor.getX11Name(ColorCode(col)).c_str());
28 QColor const rgb2qcolor(RGBColor const & rgb)
30 return QColor(rgb.r, rgb.g, rgb.b);