From 75ca70288c3f3e68b90ff8516f6f306691780f17 Mon Sep 17 00:00:00 2001 From: Wang ChunLin Date: Tue, 22 Sep 2020 13:33:58 +0800 Subject: [PATCH] fix qcombobox code style modify some code style Fixes: QTBUG-86793 Change-Id: I263bda1bd16dd34129ea5ae8948ad3eeaf833f3a Reviewed-by: Richard Moe Gustavsen --- src/widgets/widgets/qcombobox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/widgets/qcombobox.cpp b/src/widgets/widgets/qcombobox.cpp index 57a08346980..77ef69fa25e 100644 --- a/src/widgets/widgets/qcombobox.cpp +++ b/src/widgets/widgets/qcombobox.cpp @@ -848,7 +848,7 @@ void QComboBoxPrivateContainer::mousePressEvent(QMouseEvent *e) void QComboBoxPrivateContainer::mouseReleaseEvent(QMouseEvent *e) { Q_UNUSED(e); - if (!blockMouseReleaseTimer.isActive()){ + if (!blockMouseReleaseTimer.isActive()) { combo->hidePopup(); emit resetButton(); } @@ -2968,7 +2968,7 @@ void QComboBox::changeEvent(QEvent *e) d->updateLineEditGeometry(); d->setLayoutItemMargins(QStyle::SE_ComboBoxLayoutItem); - if (e->type() == QEvent::MacSizeChange){ + if (e->type() == QEvent::MacSizeChange) { QPlatformTheme::Font f = QPlatformTheme::SystemFont; if (testAttribute(Qt::WA_MacSmallSize)) f = QPlatformTheme::SmallFont;