From 500ed6b628ee5b58cbf7ce696e60558a0e2f3c4d Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 22 Oct 2012 08:32:50 +0200 Subject: [PATCH] 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 --- src/widgets/widgets/qdatetimeedit.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/widgets/widgets/qdatetimeedit.cpp b/src/widgets/widgets/qdatetimeedit.cpp index 7868690..8a23530 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); -- 2.7.4