summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qcombobox_p.h
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2009-04-03 16:19:47 (GMT)
committerJens Bache-Wiig <jbache@trolltech.com>2009-04-03 16:31:21 (GMT)
commit2a8e39999cb3f5be9bb16ffb5ddfe118d18f9ef1 (patch)
tree66667e3b26113ef47033aacc71f57d885dfe540b /src/gui/widgets/qcombobox_p.h
parentf9e0b4e7d57b568ab20b7c77e284f966ff6baf41 (diff)
downloadQt-2a8e39999cb3f5be9bb16ffb5ddfe118d18f9ef1.zip
Qt-2a8e39999cb3f5be9bb16ffb5ddfe118d18f9ef1.tar.gz
Qt-2a8e39999cb3f5be9bb16ffb5ddfe118d18f9ef1.tar.bz2
QGtkStyle: Fix styling and palette issues related to combo box
Well actually this change is a bit bigger than just that. *We no longer override the palette you provide in polish so it should be a bit more frienly toward custom application changes. * Another issue was that we would generate the palette information when we got the style callback from gtkButton but then the line edits might not yet have been polished. Hence we now return from the callback and instead post the update for later. * We had to modify the PE_Frame entry to draw a raised menu when the custom combo box delegate was used. * We now simply ignore custom qtconfig palette entries when using GtkStyle since they only cause trouble with it. Task-number: 250142 Reviewed-by: nrc
Diffstat (limited to 'src/gui/widgets/qcombobox_p.h')
-rw-r--r--src/gui/widgets/qcombobox_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qcombobox_p.h b/src/gui/widgets/qcombobox_p.h
index f1203dc..c39a231 100644
--- a/src/gui/widgets/qcombobox_p.h
+++ b/src/gui/widgets/qcombobox_p.h
@@ -265,7 +265,7 @@ protected:
const QStyleOptionViewItem &option,
const QModelIndex &index) const {
QStyleOptionMenuItem opt = getStyleOption(option, index);
- painter->eraseRect(option.rect);
+ painter->fillRect(option.rect, opt.palette.background());
mCombo->style()->drawControl(QStyle::CE_MenuItem, &opt, painter, mCombo);
}
QSize sizeHint(const QStyleOptionViewItem &option,