QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | List of all members
QgsExpressionStoreDialog Class Reference

A generic dialog for editing expression text, label and help text. More...

#include <qgsexpressionstoredialog.h>

Inheritance diagram for QgsExpressionStoreDialog:
Inheritance graph
[legend]

Public Member Functions

 QgsExpressionStoreDialog (const QString &label, const QString &expression, const QString &helpText, const QStringList &existingLabels=QStringList(), QWidget *parent=nullptr)
 Creates a QgsExpressionStoreDialog with given label, expression and helpText. More...
 
QString expression ()
 Returns the expression text. More...
 
QString helpText () const
 Returns the help text. More...
 
bool isLabelModified () const
 Returns whether the label text was modified either manually by the user, or automatically because it contained slashes or leading/trailing whitespace characters. More...
 
QString label ()
 Returns the label text. More...
 

Detailed Description

A generic dialog for editing expression text, label and help text.

Since
QGIS 3.12

Definition at line 30 of file qgsexpressionstoredialog.h.

Constructor & Destructor Documentation

◆ QgsExpressionStoreDialog()

QgsExpressionStoreDialog::QgsExpressionStoreDialog ( const QString &  label,
const QString &  expression,
const QString &  helpText,
const QStringList &  existingLabels = QStringList(),
QWidget *  parent = nullptr 
)

Creates a QgsExpressionStoreDialog with given label, expression and helpText.

existingLabels is an optional list of existing labels for unique label validation, parent is the optional parent widget.

Definition at line 20 of file qgsexpressionstoredialog.cpp.

Member Function Documentation

◆ expression()

QString QgsExpressionStoreDialog::expression ( )
inline

Returns the expression text.

Definition at line 49 of file qgsexpressionstoredialog.h.

◆ helpText()

QString QgsExpressionStoreDialog::helpText ( ) const

Returns the help text.

Definition at line 64 of file qgsexpressionstoredialog.cpp.

◆ isLabelModified()

bool QgsExpressionStoreDialog::isLabelModified ( ) const
inline

Returns whether the label text was modified either manually by the user, or automatically because it contained slashes or leading/trailing whitespace characters.

Definition at line 65 of file qgsexpressionstoredialog.h.

◆ label()

QString QgsExpressionStoreDialog::label ( )
inline

Returns the label text.

Definition at line 54 of file qgsexpressionstoredialog.h.


The documentation for this class was generated from the following files: