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
This commit is contained in:
Dov Feldstern 2007-10-22 18:49:55 +00:00
parent 5ab6d5bf65
commit 3d33cd8bd3

View 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));