summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-03-30 18:07:16 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-03-30 18:07:16 (GMT)
commit1ba55cad79980b56654403153d6d228800242774 (patch)
treef9b0afa840818e78f6c9fbb830d017d8aa75f6df
parenta32aedc044948965d91a21b9731d3c70a7dfb45c (diff)
parent601b68cbff1d0fc3f718d658384e75fce189381a (diff)
downloadQt-1ba55cad79980b56654403153d6d228800242774.zip
Qt-1ba55cad79980b56654403153d6d228800242774.tar.gz
Qt-1ba55cad79980b56654403153d6d228800242774.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public: QS60Style: Custom QPushButton: Heigth is calculated wrongly
-rw-r--r--src/gui/styles/qs60style.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 000696c..f49acc4 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -2433,7 +2433,7 @@ QSize QS60Style::sizeFromContents(ContentsType ct, const QStyleOption *opt,
const int contentHeight =
qMax(qMax(iconHeight, decoratorHeight) + pixelMetric(PM_ButtonMargin),
textHeight + 2*pixelMetric(PM_ButtonMargin));
- sz.setHeight(contentHeight);
+ sz.setHeight(qMax(sz.height(), contentHeight));
sz += QSize(2 * pixelMetric(PM_ButtonMargin), 0);
}
break;