summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBłażej Szczygieł <spaz16@wp.pl>2017-01-16 22:59:23 +0100
committerBłażej Szczygieł <spaz16@wp.pl>2017-02-20 17:11:30 +0000
commit4df109a2b83e6ca2985ac36021241d11b6f4ed88 (patch)
treea2f85eb725ba7bec405c403a89bfc47a3f7bc93b
parent84b443109729664c7a0bd124b42c493f28069efc (diff)
Plastique: Fix QSpinBox height in layout
QCommonStyle properly handles the QSpinBox size, so no need to call method for QLineEdit which returns incorrect height in this case. Change-Id: I3c5e8cbeb1c340f8300bdc2a8116b48c83ee40cc Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
-rw-r--r--src/plugins/styles/plastique/qplastiquestyle.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/styles/plastique/qplastiquestyle.cpp b/src/plugins/styles/plastique/qplastiquestyle.cpp
index 88fbca9..fbcf766 100644
--- a/src/plugins/styles/plastique/qplastiquestyle.cpp
+++ b/src/plugins/styles/plastique/qplastiquestyle.cpp
@@ -4863,7 +4863,6 @@ QSize QPlastiqueStyle::sizeFromContents(ContentsType type, const QStyleOption *o
#ifndef QT_NO_SPINBOX
case CT_SpinBox:
// Make sure the size is odd
- newSize.setHeight(sizeFromContents(CT_LineEdit, option, size, widget).height());
newSize.rheight() -= ((1 - newSize.rheight()) & 1);
break;
#endif