QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
This class is a factory of editor for double settings. More...
#include <qgssettingseditorwidgetwrapperimpl.h>
Public Member Functions | |
QgsSettingsDoubleEditorWidgetWrapper (QObject *parent=nullptr) | |
Constructor. | |
QgsSettingsEditorWidgetWrapper * | createWrapper (QObject *parent=nullptr) const override |
Creates a new instance of the editor wrapper so it can be configured for a widget and a setting. | |
QString | id () const override |
This id of the type of settings it handles. | |
bool | setSettingFromWidget () const override |
Sets the setting value from the widget value The wrapper must be configured before calling this medthod. | |
bool | setWidgetValue (const double &value) const override |
Sets the widget value. | |
double | valueFromWidget () const override |
Returns the widget value. | |
Public Member Functions inherited from QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryDouble, QDoubleSpinBox, double > | |
QgsSettingsEditorWidgetWrapperTemplate (QObject *parent=nullptr) | |
Constructor. | |
QDoubleSpinBox * | editor () const |
Returns the editor. | |
const QgsSettingsEntryDouble * | setting () const |
Returns the setting. | |
virtual bool | setWidgetFromSetting () const override |
Sets the widget value from the setting value The wrapper must be configured before calling this medthod. | |
void | setWidgetFromVariant (const QVariant &value) const override |
Sets the value of the widget The wrapper must be configured before calling this medthod. | |
QVariant | variantValueFromWidget () const override |
Returns the value from the widget as a variant The wrapper must be configured before calling this medthod. | |
Public Member Functions inherited from QgsSettingsEditorWidgetWrapper | |
QgsSettingsEditorWidgetWrapper (QObject *parent=nullptr) | |
Constructor. | |
virtual | ~QgsSettingsEditorWidgetWrapper ()=default |
bool | configureEditor (QWidget *editor, const QgsSettingsEntryBase *setting, const QStringList &dynamicKeyPartList=QStringList()) |
Configures the editor according the setting. | |
QWidget * | createEditor (const QgsSettingsEntryBase *setting, const QStringList &dynamicKeyPartList=QStringList(), QWidget *parent=nullptr) |
Creates the editor widget for the given setting. | |
Additional Inherited Members | |
Static Public Member Functions inherited from QgsSettingsEditorWidgetWrapper | |
static QgsSettingsEditorWidgetWrapper * | fromWidget (const QWidget *widget) |
Creates a wrapper from the definition stored in a widget created by createEditor() | |
Protected Member Functions inherited from QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryDouble, QDoubleSpinBox, double > | |
bool | configureEditorPrivate (QWidget *editor, const QgsSettingsEntryBase *setting) override |
Configures an existing editor widget. | |
virtual void | configureEditorPrivateImplementation () |
To be re-implemented to implemeent type specific configuration (e.g. opacity for colors) | |
virtual QWidget * | createEditorPrivate (QWidget *parent=nullptr) const override |
Creates the widgets. | |
Protected Attributes inherited from QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryDouble, QDoubleSpinBox, double > | |
QDoubleSpinBox * | mEditor |
const QgsSettingsEntryDouble * | mSetting |
Protected Attributes inherited from QgsSettingsEditorWidgetWrapper | |
QStringList | mDynamicKeyPartList |
This class is a factory of editor for double settings.
Definition at line 201 of file qgssettingseditorwidgetwrapperimpl.h.
|
inline |
Constructor.
Definition at line 206 of file qgssettingseditorwidgetwrapperimpl.h.
|
inlineoverridevirtual |
Creates a new instance of the editor wrapper so it can be configured for a widget and a setting.
Implements QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryDouble, QDoubleSpinBox, double >.
Definition at line 209 of file qgssettingseditorwidgetwrapperimpl.h.
|
overridevirtual |
This id of the type of settings it handles.
Implements QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryDouble, QDoubleSpinBox, double >.
Definition at line 184 of file qgssettingseditorwidgetwrapperimpl.cpp.
|
overridevirtual |
Sets the setting value from the widget value The wrapper must be configured before calling this medthod.
Implements QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryDouble, QDoubleSpinBox, double >.
Definition at line 203 of file qgssettingseditorwidgetwrapperimpl.cpp.
|
overridevirtual |
Sets the widget value.
Implements QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryDouble, QDoubleSpinBox, double >.
Definition at line 189 of file qgssettingseditorwidgetwrapperimpl.cpp.
|
overridevirtual |
Returns the widget value.
Implements QgsSettingsEditorWidgetWrapperTemplate< QgsSettingsEntryDouble, QDoubleSpinBox, double >.
Definition at line 217 of file qgssettingseditorwidgetwrapperimpl.cpp.