QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
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 102 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 171 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 197 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 202 of file qgsnumericformatselectorwidget.cpp.
void QgsNumericFormatSelectorDialog::setFormat | ( | const QgsNumericFormat * | format | ) |
Sets the format to show in the dialog.
Definition at line 192 of file qgsnumericformatselectorwidget.cpp.