Remove the space before the ')'
1.According to QT coding styles, there should be no space around the parentheses 2.Replace the & operator with testflag() Task-number: QTBUG-85617 Change-Id: I1d1ae9ec0d20f3401ce4a2ee9089b72205f6e8eb Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>bb10
parent
9a189a096f
commit
6a2f34db0b
|
|
@ -752,7 +752,7 @@ bool QComboBoxPrivateContainer::eventFilter(QObject *o, QEvent *e)
|
|||
#ifdef QT_KEYPAD_NAVIGATION
|
||||
case Qt::Key_Select:
|
||||
#endif
|
||||
if (view->currentIndex().isValid() && (view->currentIndex().flags() & Qt::ItemIsEnabled) ) {
|
||||
if (view->currentIndex().isValid() && view->currentIndex().flags().testFlag(Qt::ItemIsEnabled)) {
|
||||
combo->hidePopup();
|
||||
emit itemSelected(view->currentIndex());
|
||||
}
|
||||
|
|
@ -798,8 +798,8 @@ bool QComboBoxPrivateContainer::eventFilter(QObject *o, QEvent *e)
|
|||
QMouseEvent *m = static_cast<QMouseEvent *>(e);
|
||||
if (isVisible() && view->rect().contains(m->position().toPoint()) && view->currentIndex().isValid()
|
||||
&& !blockMouseReleaseTimer.isActive() && !ignoreEvent
|
||||
&& (view->currentIndex().flags() & Qt::ItemIsEnabled)
|
||||
&& (view->currentIndex().flags() & Qt::ItemIsSelectable)) {
|
||||
&& (view->currentIndex().flags().testFlag(Qt::ItemIsEnabled))
|
||||
&& (view->currentIndex().flags().testFlag(Qt::ItemIsSelectable))) {
|
||||
combo->hidePopup();
|
||||
emit itemSelected(view->currentIndex());
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue