diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-04-08 12:34:18 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jbache@trolltech.com> | 2009-04-08 12:36:25 (GMT) |
commit | f2edb497ac2c3ff6f8c004046e216b8bdf7c4347 (patch) | |
tree | 74c6a947e7e7f92c31d0cd08dbaae50f405b1550 /src/gui/styles/qgtkstyle.cpp | |
parent | 27c1edac6769f863549f0940d35cf3f82e778a46 (diff) | |
download | Qt-f2edb497ac2c3ff6f8c004046e216b8bdf7c4347.zip Qt-f2edb497ac2c3ff6f8c004046e216b8bdf7c4347.tar.gz Qt-f2edb497ac2c3ff6f8c004046e216b8bdf7c4347.tar.bz2 |
BT: Fix a painting glitch in gtk combo box
This improves the look of combo box with gtk style which is somewhat a
regression from 4.5.0 since we did not style this part before.
Reviewed-by: nrc
Diffstat (limited to 'src/gui/styles/qgtkstyle.cpp')
-rw-r--r-- | src/gui/styles/qgtkstyle.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/styles/qgtkstyle.cpp b/src/gui/styles/qgtkstyle.cpp index b569b5c..519fed7 100644 --- a/src/gui/styles/qgtkstyle.cpp +++ b/src/gui/styles/qgtkstyle.cpp @@ -2507,6 +2507,10 @@ void QGtkStyle::drawControl(ControlElement element, if (selected) { QRect rect = option->rect.adjusted(0, 0, -1, -1); +#ifndef QT_NO_COMBOBOX + if (qobject_cast<const QComboBox*>(widget)) + rect = option->rect; +#endif gtkPainter.paintBox( gtkMenuItem, "menuitem", rect, GTK_STATE_PRELIGHT, GTK_SHADOW_OUT, style); } |