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

View File

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