summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-04-29 10:48:07 (GMT)
committerAlessandro Portale <aportale@trolltech.com>2009-04-29 10:48:07 (GMT)
commit23b78dc988d9e5cf9e846510b0525166222b184c (patch)
tree33655fb5f557176dcbed8ecf85381bc6939727bd
parentbce48e0a5317be7ebbfbaf714de00ab083ef7cf5 (diff)
downloadQt-23b78dc988d9e5cf9e846510b0525166222b184c.zip
Qt-23b78dc988d9e5cf9e846510b0525166222b184c.tar.gz
Qt-23b78dc988d9e5cf9e846510b0525166222b184c.tar.bz2
MSVC refuses to compile if variables get defined in a case block without
braces. I think that is a useful feature.
-rw-r--r--src/gui/styles/qs60style.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 58dcb98..059198d 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -2157,12 +2157,13 @@ QRect QS60Style::subControlRect(ComplexControl control, const QStyleOptionComple
ret = QCommonStyle::subControlRect(control, option, scontrol, widget);
switch (scontrol) {
case SC_GroupBoxCheckBox: //fallthrough
- case SC_GroupBoxLabel:
+ case SC_GroupBoxLabel: {
//slightly indent text and boxes, so that dialog border does not mess with them.
const int horizontalSpacing =
QS60StylePrivate::pixelMetric(QStyle::PM_LayoutHorizontalSpacing);
const int bottomMargin = QS60StylePrivate::pixelMetric(QStyle::PM_LayoutBottomMargin);
ret.adjust(2,horizontalSpacing-3,0,0);
+ }
break;
case SC_GroupBoxFrame: {
const QRect textBox = subControlRect(control, option, SC_GroupBoxLabel, widget);