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 "lcolorcache.h"
18 LColorCache lcolorcache;
21 LColorCache::LColorCache()
26 QColor const & LColorCache::get(LColor_color col) const
28 lcolor_map::const_iterator cit = colormap.find(col);
29 if (cit != colormap.end())
32 QColor const qcol(lcolor.getX11Name(col).c_str());
38 void LColorCache::clear()
44 QColor const rgb2qcolor(lyx::RGBColor const & rgb)
46 return QColor(rgb.r, rgb.g, rgb.b);