diff options
author | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2009-05-14 12:09:58 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jens.bache-wiig@nokia.com> | 2009-05-14 12:11:47 (GMT) |
commit | b038c1ac6bdac15b123946821bbff3ee25bfad2b (patch) | |
tree | 033a9773b98a6046394cfcaa7eb08e4a1ef01893 /src/gui/styles/qwindowsxpstyle.cpp | |
parent | 5db3e40ca796f29cbd7bfc5f7f88823f6e27c16f (diff) | |
download | Qt-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.cpp | 7 |
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; |