Skip to content
Permalink
Browse files

fix typo

  • Loading branch information
3nids committed Nov 29, 2018
1 parent f24daa2 commit e03537a4cfc44ba9de73aa008ab6639acb462bf9
Showing with 17 additions and 6 deletions.
  1. +7 −0 python/core/auto_generated/locator/qgslocatorfilter.sip.in
  2. +10 −6 src/core/locator/qgslocatorfilter.h
@@ -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;
@@ -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 )

0 comments on commit e03537a

Please sign in to comment.
You can’t perform that action at this time.