Skip to content

Commit

Permalink
Fix some clazy eventFilter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 8, 2018
1 parent 719adfa commit da89f18
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/gui/attributetable/qgsattributetableview.cpp
Expand Up @@ -83,7 +83,7 @@ bool QgsAttributeTableView::eventFilter( QObject *object, QEvent *event )
break;
}
}
return false;
return QTableView::eventFilter( object, event );
}

void QgsAttributeTableView::setAttributeTableConfig( const QgsAttributeTableConfig &config )
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgsadvanceddigitizingdockwidget.cpp
Expand Up @@ -785,12 +785,12 @@ bool QgsAdvancedDigitizingDockWidget::eventFilter( QObject *obj, QEvent *event )
Q_UNUSED( obj );
if ( event->type() != QEvent::KeyPress )
{
return false;
return QgsDockWidget::eventFilter( obj, event );
}
QKeyEvent *keyEvent = dynamic_cast<QKeyEvent *>( event );
if ( !keyEvent )
{
return false;
return QgsDockWidget::eventFilter( obj, event );
}
return filterKeyPress( keyEvent );
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgscheckablecombobox.cpp
Expand Up @@ -220,7 +220,7 @@ bool QgsCheckableComboBox::eventFilter( QObject *object, QEvent *event )
return true;
}
}
return false;
return QComboBox::eventFilter( object, event );
}

void QgsCheckableComboBox::setCheckedItems( const QStringList &items )
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsorderbydialog.cpp
Expand Up @@ -149,7 +149,7 @@ bool QgsOrderByDialog::eventFilter( QObject *obj, QEvent *e )
}
}

return false;
return QDialog::eventFilter( obj, e );
}

void QgsOrderByDialog::showHelp()
Expand Down

0 comments on commit da89f18

Please sign in to comment.