diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-06-02 11:37:07 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-06-02 11:40:02 (GMT) |
commit | 3be8bd20537ea215c7accaf1be3ffb6673fd897b (patch) | |
tree | 568345ef8c5599c40f9293e1ca26d02356747d6b /src | |
parent | 983411366b3517fce2dd6fc6b72c6292e93f6824 (diff) | |
download | Qt-3be8bd20537ea215c7accaf1be3ffb6673fd897b.zip Qt-3be8bd20537ea215c7accaf1be3ffb6673fd897b.tar.gz Qt-3be8bd20537ea215c7accaf1be3ffb6673fd897b.tar.bz2 |
Ensure small and mini headers aren't bigger than "large" ones.
We were only "constraining" headers if they were large, but ignoring the
small and mini ones. This resulted in the small and mini headers looking
bigger than their normal ones which looked strange. Since the headers
have no real small or mini size for a header, we'll make sure to
constrain them all the same.
Task-number: 221115
Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/styles/qmacstyle_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm index 2478f20..43efedf 100644 --- a/src/gui/styles/qmacstyle_mac.mm +++ b/src/gui/styles/qmacstyle_mac.mm @@ -851,7 +851,7 @@ static QSize qt_aqua_get_known_size(QStyle::ContentsType ct, const QWidget *widg } break; case QStyle::CT_HeaderSection: - if (sz == QAquaSizeLarge && isTreeView(widg)) + if (isTreeView(widg)) ret = QSize(-1, qt_mac_aqua_get_metric(kThemeMetricListHeaderHeight)); break; case QStyle::CT_MenuBar: |