summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qwindowsxpstyle.cpp
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@nokia.com>2009-05-14 12:09:58 (GMT)
committerJens Bache-Wiig <jens.bache-wiig@nokia.com>2009-05-14 12:11:47 (GMT)
commitb038c1ac6bdac15b123946821bbff3ee25bfad2b (patch)
tree033a9773b98a6046394cfcaa7eb08e4a1ef01893 /src/gui/styles/qwindowsxpstyle.cpp
parent5db3e40ca796f29cbd7bfc5f7f88823f6e27c16f (diff)
downloadQt-b038c1ac6bdac15b123946821bbff3ee25bfad2b.zip
Qt-b038c1ac6bdac15b123946821bbff3ee25bfad2b.tar.gz
Qt-b038c1ac6bdac15b123946821bbff3ee25bfad2b.tar.bz2
Fixes combobox menu separator on XP
While the delegate is somewhat abusing the ToolbarSeparator here, we should make sure we draw something for small heights as well. It seems microsoft requires us to allocate a few more pixels for the separator to actually be visible. Task-number: 249192 Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/styles/qwindowsxpstyle.cpp')
-rw-r--r--src/gui/styles/qwindowsxpstyle.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/styles/qwindowsxpstyle.cpp b/src/gui/styles/qwindowsxpstyle.cpp
index 639eff0..3dac9f5 100644
--- a/src/gui/styles/qwindowsxpstyle.cpp
+++ b/src/gui/styles/qwindowsxpstyle.cpp
@@ -1792,7 +1792,12 @@ case PE_Frame:
return;
case PE_IndicatorToolBarSeparator:
-
+ if (option->rect.height() < 3) {
+ // XP style requires a few pixels for the separator
+ // to be visible.
+ QWindowsStyle::drawPrimitive(pe, option, p, widget);
+ return;
+ }
name = QLatin1String("TOOLBAR");
partId = TP_SEPARATOR;