QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
QgsLocatorResult::ResultAction Struct Reference

The ResultAction stores basic information for additional actions to be used in a locator widget for the result. More...

#include <qgslocatorfilter.h>

Public Member Functions

 ResultAction ()=default
 
 ResultAction (int id, QString text, QString iconPath=QString())
 Constructor for ResultAction The id used to recognized the action when the result is triggered.
 

Public Attributes

QString iconPath
 
int id = -1
 
QString text
 

Detailed Description

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

Definition at line 124 of file qgslocatorfilter.h.

Constructor & Destructor Documentation

◆ ResultAction() [1/2]

QgsLocatorResult::ResultAction::ResultAction ( )
default

◆ ResultAction() [2/2]

QgsLocatorResult::ResultAction::ResultAction ( int  id,
QString  text,
QString  iconPath = QString() 
)
inline

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.

Definition at line 136 of file qgslocatorfilter.h.

Member Data Documentation

◆ iconPath

QString QgsLocatorResult::ResultAction::iconPath

Definition at line 143 of file qgslocatorfilter.h.

◆ id

int QgsLocatorResult::ResultAction::id = -1

Definition at line 141 of file qgslocatorfilter.h.

◆ text

QString QgsLocatorResult::ResultAction::text

Definition at line 142 of file qgslocatorfilter.h.


The documentation for this struct was generated from the following file: