mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-22 00:14:55 -05:00
avoid reusing virtual method
This commit is contained in:
parent
2b9c8dc019
commit
2edda03b75
@ -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 );
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user