]> git.lyx.org Git - features.git/commitdiff
Compilation fix for Qt 4.2.1 in GuiPrefs.cpp
authorDov Feldstern <dov@lyx.org>
Mon, 22 Oct 2007 18:49:55 +0000 (18:49 +0000)
committerDov Feldstern <dov@lyx.org>
Mon, 22 Oct 2007 18:49:55 +0000 (18:49 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21125 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiPrefs.cpp

index d859096983fd5ba8aaf92f5be0499e10f6bbe14c..694087238766b3226be616a7810c429191f2eef7 100644 (file)
@@ -1839,8 +1839,8 @@ void PrefShortcuts::setItemType(QTreeWidgetItem * item, item_type tag)
        }
 
 #if QT_VERSION >= 0x040200
-       item->setForeground(0, QBrush(color));
-       item->setForeground(1, QBrush(color));
+       item->setForeground(0, QBrush(QColor(color)));
+       item->setForeground(1, QBrush(QColor(color)));
 #else
        item->setTextColor(0, QColor(color));
        item->setTextColor(1, QColor(color));