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>
This commit is contained in:
Marc Mutz 2012-10-22 08:32:50 +02:00 committed by The Qt Project
parent e0ba8fdbce
commit 500ed6b628

View File

@ -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);