File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
python/core/auto_generated/locator Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ Returns true if some text to be search is pending in the queue
57
57
Returns true if the a search is currently running
58
58
%End
59
59
60
- void triggerResult( const QModelIndex &index, const int id = -1 );
60
+ void triggerResult( const QModelIndex &index, const int actionId = -1 );
61
61
%Docstring
62
- Triggers the result at given ``index`` and with optional ``action `` if context menu entry was triggered
62
+ Triggers the result at given ``index`` and with optional ``actionId `` if an additional action was triggered
63
63
%End
64
64
65
65
signals:
Original file line number Diff line number Diff line change @@ -37,14 +37,14 @@ bool QgsLocatorModelBridge::isRunning() const
37
37
return mIsRunning ;
38
38
}
39
39
40
- void QgsLocatorModelBridge::triggerResult ( const QModelIndex &index, const int id )
40
+ void QgsLocatorModelBridge::triggerResult ( const QModelIndex &index, const int actionId )
41
41
{
42
42
mLocator ->clearPreviousResults ();
43
43
QgsLocatorResult result = mProxyModel ->data ( index, QgsLocatorModel::ResultDataRole ).value < QgsLocatorResult >();
44
44
if ( result.filter )
45
45
{
46
- if ( id >= 0 )
47
- result.filter ->triggerResultFromAction ( result, id );
46
+ if ( actionId >= 0 )
47
+ result.filter ->triggerResultFromAction ( result, actionId );
48
48
else
49
49
result.filter ->triggerResult ( result );
50
50
}
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ class CORE_EXPORT QgsLocatorModelBridge : public QObject
63
63
// ! Returns true if the a search is currently running
64
64
bool isRunning () const ;
65
65
66
- // ! Triggers the result at given \a index and with optional \a action if context menu entry was triggered
67
- void triggerResult ( const QModelIndex &index, const int id = -1 );
66
+ // ! Triggers the result at given \a index and with optional \a actionId if an additional action was triggered
67
+ void triggerResult ( const QModelIndex &index, const int actionId = -1 );
68
68
69
69
signals:
70
70
// ! Emitted when a result is added
You can’t perform that action at this time.
0 commit comments