From: Dov Feldstern Date: Mon, 22 Oct 2007 18:49:55 +0000 (+0000) Subject: Compilation fix for Qt 4.2.1 in GuiPrefs.cpp X-Git-Tag: 1.6.10~7719 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3d33cd8bd3f6f82b66fae1e876033b8ee8ac8d27;p=features.git Compilation fix for Qt 4.2.1 in GuiPrefs.cpp git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21125 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index d859096983..6940872387 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -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));