Skip to content

Commit

Permalink
avoid reusing virtual method
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Mar 26, 2020
1 parent 2b9c8dc commit 2edda03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsexpressiontreeview.cpp
Expand Up @@ -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();
Expand Down Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsexpressiontreeview.h
Expand Up @@ -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();
Expand Down

0 comments on commit 2edda03

Please sign in to comment.