Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Nov 29, 2018
1 parent f24daa2 commit e03537a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
7 changes: 7 additions & 0 deletions python/core/auto_generated/locator/qgslocatorfilter.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ Constructor for QgsLocatorResult.
%Docstring
Constructor for ResultAction
%End

ResultAction( int id, QString text, QString iconPath = QString() );
%Docstring
Constructor for ResultAction
The ``id`` used to recognized the action when the result is triggered.
It should be 0 or greater as otherwise, the result will be triggered
normally.
%End
int id;
QString text;
QString iconPath;
Expand Down
16 changes: 10 additions & 6 deletions src/core/locator/qgslocatorfilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,23 @@ class CORE_EXPORT QgsLocatorResult
QString group = QString();

/**
* The ResultActions stores basic informations for additional
* actions to be used in a locator widget, in a context menu
* for instance.
* The \a id used to recognized the action when the result is triggered.
* It should be 0 or greater as otherwise, the result will be triggered
* normally.
* The ResultAction stores basic information for additional
* actions to be used in a locator widget for the result.
* They could be used in a context menu for instance.
* \since QGIS 3.6
*/
struct CORE_EXPORT ResultAction
{
public:
//! Constructor for ResultAction
ResultAction() = default;

/**
* Constructor for ResultAction
* The \a id used to recognized the action when the result is triggered.
* It should be 0 or greater as otherwise, the result will be triggered
* normally.
*/
ResultAction( int id, QString text, QString iconPath = QString() )
: id( id )
, text( text )
Expand Down

0 comments on commit e03537a

Please sign in to comment.