summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJens Bache-Wiig <jensb.bache-wiig@nokia.com>2011-09-18 23:01:55 +0200
committerJens Bache-Wiig <jensb.bache-wiig@nokia.com>2011-09-18 23:01:55 +0200
commita4dc11b101dd254c2f1a7885d50dc22da78a56e0 (patch)
tree35a3058ff8604e03deaf7b94b03f28336c726972 /src
parent9feddc017f1786a36a97f60b12803e65f7c03ef8 (diff)
downloadqtquickcontrols-a4dc11b101dd254c2f1a7885d50dc22da78a56e0.tar.gz
Limit mac button tweak to mac style
Diffstat (limited to 'src')
-rw-r--r--src/styleitem/qstyleitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/styleitem/qstyleitem.cpp b/src/styleitem/qstyleitem.cpp
index 2f044ca5..2da8fea9 100644
--- a/src/styleitem/qstyleitem.cpp
+++ b/src/styleitem/qstyleitem.cpp
@@ -450,7 +450,7 @@ void QStyleItem::initStyleOption()
}
}
#ifdef Q_WS_MAC
- if (m_itemType == Button) {
+ if (m_itemType == Button && style() == "mac") {
// Macstyle hardcodes extra spacing inside the button paintrect
m_styleoption->rect.adjust(-5, 0, 6, 0);
}