diff options
author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2012-11-02 14:27:09 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-02 18:07:35 +0100 |
commit | 0506c2fbb91f5bf88642bd49166d5378588384e4 (patch) | |
tree | f1ccff6ba30a35f6ff21ee744d9f20b2a7933890 | |
parent | 40c9a3ef11ba8b513633dce3d0cf352efdf2352e (diff) |
Fix height of combobox in macstyle without a widget
When no widget is provided we hardcode the height and the value
was off by 2. There is no change when a widget is provided.
Change-Id: I555b5206b8750db06595a1e2572a3f8212635a9d
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
-rw-r--r-- | src/widgets/styles/qmacstyle_mac.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/styles/qmacstyle_mac.mm b/src/widgets/styles/qmacstyle_mac.mm index 04fdb99b93..b95765031c 100644 --- a/src/widgets/styles/qmacstyle_mac.mm +++ b/src/widgets/styles/qmacstyle_mac.mm @@ -6252,6 +6252,7 @@ QSize QMacStyle::sizeFromContents(ContentsType ct, const QStyleOption *opt, return sz; case CT_ComboBox: sz.rwidth() += 50; + sz.rheight() += 2; break; case CT_Menu: { QStyleHintReturnMask menuMask; |