QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
A simple dialog for customizing a numeric format. More...
#include <qgsnumericformatselectorwidget.h>
Public Member Functions | |
QgsNumericFormatSelectorDialog (QWidget *parent=nullptr, Qt::WindowFlags flags=QgsGuiUtils::ModalDialogFlags) | |
Constructor for QgsNumericFormatSelectorDialog. | |
QgsNumericFormat * | format () const |
Returns a new format object representing the settings currently configured in the dialog. | |
void | registerExpressionContextGenerator (QgsExpressionContextGenerator *generator) |
Register an expression context generator class that will be used to retrieve an expression context for the dialog when required. | |
void | setFormat (const QgsNumericFormat *format) |
Sets the format to show in the dialog. | |
A simple dialog for customizing a numeric format.
Definition at line 104 of file qgsnumericformatselectorwidget.h.
QgsNumericFormatSelectorDialog::QgsNumericFormatSelectorDialog | ( | QWidget * | parent = nullptr , |
Qt::WindowFlags | flags = QgsGuiUtils::ModalDialogFlags |
||
) |
Constructor for QgsNumericFormatSelectorDialog.
parent | parent widget |
flags | window flags for dialog |
Definition at line 175 of file qgsnumericformatselectorwidget.cpp.
QgsNumericFormat * QgsNumericFormatSelectorDialog::format | ( | ) | const |
Returns a new format object representing the settings currently configured in the dialog.
The caller takes ownership of the returned object.
Definition at line 201 of file qgsnumericformatselectorwidget.cpp.
void QgsNumericFormatSelectorDialog::registerExpressionContextGenerator | ( | QgsExpressionContextGenerator * | generator | ) |
Register an expression context generator class that will be used to retrieve an expression context for the dialog when required.
Ownership is not transferred, and the generator must exist for the lifetime of this dialog.
Definition at line 206 of file qgsnumericformatselectorwidget.cpp.
void QgsNumericFormatSelectorDialog::setFormat | ( | const QgsNumericFormat * | format | ) |
Sets the format to show in the dialog.
Definition at line 196 of file qgsnumericformatselectorwidget.cpp.