summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-10-22 08:32:50 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-22 19:36:43 +0200
commit500ed6b628ee5b58cbf7ce696e60558a0e2f3c4d (patch)
tree6f4b3155d4b4a38fcf6687de92d55e5eefd2f0eb /src/widgets
parente0ba8fdbcee31966f94bdeef7716a33afc3d9869 (diff)
QDateTimeEdit: don't throw off auto-indention
Reformulate #ifdef'ery involving {}s so as not to throw off auto-indention of code editors due to unbalanced {}s. Change-Id: I0f9858c78d0b6d923de75ca45c7d65ce3fa53e50 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/widgets/qdatetimeedit.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/widgets/widgets/qdatetimeedit.cpp b/src/widgets/widgets/qdatetimeedit.cpp
index 7868690e49..8a23530283 100644
--- a/src/widgets/widgets/qdatetimeedit.cpp
+++ b/src/widgets/widgets/qdatetimeedit.cpp
@@ -990,10 +990,9 @@ QSize QDateTimeEdit::sizeHint() const
if (d->calendarPopupEnabled()) {
QStyleOptionComboBox opt;
d->cachedSizeHint = style()->sizeFromContents(QStyle::CT_ComboBox, &opt, hint, this);
- } else {
-#else
- {
+ } else
#endif
+ {
QSize extra(35, 6);
QStyleOptionSpinBox opt;
initStyleOption(&opt);