fix qcombobox code style
modify some code style Fixes: QTBUG-86793 Change-Id: I263bda1bd16dd34129ea5ae8948ad3eeaf833f3a Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
parent
ca6ac03845
commit
75ca70288c
@ -848,7 +848,7 @@ void QComboBoxPrivateContainer::mousePressEvent(QMouseEvent *e)
|
|||||||
void QComboBoxPrivateContainer::mouseReleaseEvent(QMouseEvent *e)
|
void QComboBoxPrivateContainer::mouseReleaseEvent(QMouseEvent *e)
|
||||||
{
|
{
|
||||||
Q_UNUSED(e);
|
Q_UNUSED(e);
|
||||||
if (!blockMouseReleaseTimer.isActive()){
|
if (!blockMouseReleaseTimer.isActive()) {
|
||||||
combo->hidePopup();
|
combo->hidePopup();
|
||||||
emit resetButton();
|
emit resetButton();
|
||||||
}
|
}
|
||||||
@ -2968,7 +2968,7 @@ void QComboBox::changeEvent(QEvent *e)
|
|||||||
d->updateLineEditGeometry();
|
d->updateLineEditGeometry();
|
||||||
d->setLayoutItemMargins(QStyle::SE_ComboBoxLayoutItem);
|
d->setLayoutItemMargins(QStyle::SE_ComboBoxLayoutItem);
|
||||||
|
|
||||||
if (e->type() == QEvent::MacSizeChange){
|
if (e->type() == QEvent::MacSizeChange) {
|
||||||
QPlatformTheme::Font f = QPlatformTheme::SystemFont;
|
QPlatformTheme::Font f = QPlatformTheme::SystemFont;
|
||||||
if (testAttribute(Qt::WA_MacSmallSize))
|
if (testAttribute(Qt::WA_MacSmallSize))
|
||||||
f = QPlatformTheme::SmallFont;
|
f = QPlatformTheme::SmallFont;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user