avoid reusing virtual method

This commit is contained in:
Denis Rouzaud 2020-03-26 16:51:28 +01:00
parent 2b9c8dc019
commit 2edda03b75
2 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ QgsExpressionTreeView::QgsExpressionTreeView( QWidget *parent )
setContextMenuPolicy( Qt::CustomContextMenu );
connect( this, &QWidget::customContextMenuRequested, this, &QgsExpressionTreeView::showContextMenu );
connect( selectionModel(), &QItemSelectionModel::currentChanged, this, &QgsExpressionTreeView::currentChanged );
connect( selectionModel(), &QItemSelectionModel::currentChanged, this, &QgsExpressionTreeView::currentItemChanged );
updateFunctionTree();
loadUserExpressions();
@ -241,7 +241,7 @@ void QgsExpressionTreeView::showContextMenu( QPoint pt )
menu->popup( mapToGlobal( pt ) );
}
void QgsExpressionTreeView::currentChanged( const QModelIndex &index, const QModelIndex & )
void QgsExpressionTreeView::currentItemChanged( const QModelIndex &index, const QModelIndex & )
{
// Get the item
QModelIndex idx = mProxyModel->mapToSource( index );

View File

@ -272,7 +272,7 @@ class GUI_EXPORT QgsExpressionTreeView : public QTreeView
void showContextMenu( QPoint pt );
void currentChanged( const QModelIndex &index, const QModelIndex & );
void currentItemChanged( const QModelIndex &index, const QModelIndex & );
private:
void updateFunctionTree();