summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Meyer <cmeyer1969@gmail.com>2010-11-09 18:03:26 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2011-08-12 09:24:34 (GMT)
commit98babb1408712a14098a9a75b31c4e9603afdbc0 (patch)
treea0d54c7fdd14eb92e9a2ee91273ded60bb5f56b0 /src
parent31abffa0f2feba60b7cee94d41f1e76f92e31ac0 (diff)
downloadQt-98babb1408712a14098a9a75b31c4e9603afdbc0.zip
Qt-98babb1408712a14098a9a75b31c4e9603afdbc0.tar.gz
Qt-98babb1408712a14098a9a75b31c4e9603afdbc0.tar.bz2
Fix bug QTBUG-13901, Mac style button rect
Make sure that clicks in the corners of buttons with Mac style are treated properly. Added test case.
Diffstat (limited to 'src')
-rw-r--r--src/gui/styles/qmacstyle_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm
index 8436856..1c1713c 100644
--- a/src/gui/styles/qmacstyle_mac.mm
+++ b/src/gui/styles/qmacstyle_mac.mm
@@ -1063,7 +1063,7 @@ bool qt_mac_buttonIsRenderedFlat(const QPushButton *pushButton, const QStyleOpti
{
QMacStyle *macStyle = qobject_cast<QMacStyle *>(pushButton->style());
if (!macStyle)
- return false;
+ return true; // revert to 'flat' behavior if not Mac style
HIThemeButtonDrawInfo bdi;
macStyle->d->initHIThemePushButton(option, pushButton, kThemeStateActive, &bdi);
return bdi.kind == kThemeBevelButton;