]> git.lyx.org Git - features.git/commitdiff
* use base color for layout list background. Qt docs say:
authorStefan Schimanski <sts@lyx.org>
Tue, 11 Mar 2008 10:29:14 +0000 (10:29 +0000)
committerStefan Schimanski <sts@lyx.org>
Tue, 11 Mar 2008 10:29:14 +0000 (10:29 +0000)
QPalette::Base: Used mostly as the background color for text
entry widgets, but can also be used for other painting - such as the
background of combobox drop down lists and toolbar handles. It is
usually white or another light color.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23660 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiToolbar.cpp

index 167d86d3977a52272249c7678b8bc5a0c5557eb8..581e6ec9d23d40d90fefdd4256a5e4ab4f911496 100644 (file)
@@ -264,7 +264,7 @@ public:
                QStyleOptionViewItem opt = option;
                
                // default background
-               painter->fillRect(opt.rect, opt.palette.background().color());
+               painter->fillRect(opt.rect, opt.palette.color(QPalette::Base));
                
                // category header?
                if (lyxrc.group_layouts) {