]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QWorkArea.C
Get rid of the static_casts.
[lyx.git] / src / frontends / qt2 / QWorkArea.C
index cf6d6b311fc000a87e3bfad265f8446989256c23..b5971a214ad1f9887acffcdb2f77427b0f5e5dd3 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "QWorkArea.h"
 #include "qt_helpers.h"
+#include "lcolorcache.h"
 
 #include <qapplication.h>
 #include <qevent.h>
@@ -53,7 +54,7 @@ QWorkArea::QWorkArea(int, int, int, int)
 
        content_->show();
 
-       content_->setBackgroundColor(toqstr(lcolor.getX11Name(LColor::background)));
+       content_->setBackgroundColor(lcolorcache.get(LColor::background));
 
        QHBoxLayout * vl = new QHBoxLayout(this);
        vl->addWidget(content_, 5);