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:
parent
e0ba8fdbce
commit
500ed6b628
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user