diff options
author | Wang ChunLin <wangchunlin@uniontech.com> | 2020-09-22 13:33:58 +0800 |
---|---|---|
committer | Wang ChunLin <wangchunlin@uniontech.com> | 2020-09-25 10:52:02 +0800 |
commit | 75ca70288c3f3e68b90ff8516f6f306691780f17 (patch) | |
tree | a36ba6a0396d70f56c5c729130c786e752c61a16 /src/widgets/widgets/qcombobox.cpp | |
parent | ca6ac03845dd5882940f50b667035692b6fd94c5 (diff) |
fix qcombobox code style
modify some code style
Fixes: QTBUG-86793
Change-Id: I263bda1bd16dd34129ea5ae8948ad3eeaf833f3a
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/widgets/widgets/qcombobox.cpp')
-rw-r--r-- | src/widgets/widgets/qcombobox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/widgets/qcombobox.cpp b/src/widgets/widgets/qcombobox.cpp index 57a0834698..77ef69fa25 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; |