Skip to content

Commit 157c8f4

Browse files
committed
more doc
1 parent c13b419 commit 157c8f4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

python/core/auto_generated/locator/qgslocatormodelbridge.sip.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ Returns true if some text to be search is pending in the queue
5757
Returns true if the a search is currently running
5858
%End
5959

60-
void triggerResult( const QModelIndex &index, const int id = -1 );
60+
void triggerResult( const QModelIndex &index, const int actionId = -1 );
6161
%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
6363
%End
6464

6565
signals:

src/core/locator/qgslocatormodelbridge.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ bool QgsLocatorModelBridge::isRunning() const
3737
return mIsRunning;
3838
}
3939

40-
void QgsLocatorModelBridge::triggerResult( const QModelIndex &index, const int id )
40+
void QgsLocatorModelBridge::triggerResult( const QModelIndex &index, const int actionId )
4141
{
4242
mLocator->clearPreviousResults();
4343
QgsLocatorResult result = mProxyModel->data( index, QgsLocatorModel::ResultDataRole ).value< QgsLocatorResult >();
4444
if ( result.filter )
4545
{
46-
if ( id >= 0 )
47-
result.filter->triggerResultFromAction( result, id );
46+
if ( actionId >= 0 )
47+
result.filter->triggerResultFromAction( result, actionId );
4848
else
4949
result.filter->triggerResult( result );
5050
}

src/core/locator/qgslocatormodelbridge.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ class CORE_EXPORT QgsLocatorModelBridge : public QObject
6363
//! Returns true if the a search is currently running
6464
bool isRunning() const;
6565

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 );
6868

6969
signals:
7070
//! Emitted when a result is added

0 commit comments

Comments
 (0)