18#include "moc_qgssettingseditorwidgetwrapperimpl.cpp"
52 QObject::connect( this->
mEditor, &QLineEdit::textChanged,
this, [ = ](
const QString & text )
80 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
101 mEditor->setCurrentIndex( idx );
118 QObject::connect(
mEditor, &QComboBox::currentTextChanged,
this, [ = ](
const QString & currentText )
120 QString textValue = currentText;
122 textValue =
mEditor->currentData().toString();
149 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
179 QObject::connect( this->
mEditor, &QCheckBox::clicked,
this, [ = ](
bool checked )
208 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
239 QObject::connect( this->
mEditor, qOverload<int>( &QSpinBox::valueChanged ),
this, [ = ](
int value )
267 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
269 return std::numeric_limits<int>::quiet_NaN();
299 QObject::connect( this->
mEditor, qOverload<double>( &QDoubleSpinBox::valueChanged ),
this, [ = ](
double value )
327 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
329 return std::numeric_limits<double>::quiet_NaN();
397 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
@ Double
Double precision number.
void enableAutomaticUpdatePrivate() override
Enables automatic update, which causes the setting to be updated immediately when the widget value is...
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 medth...
bool valueFromWidget() const override
Returns the widget value.
bool setWidgetValue(const bool &value) const override
Sets the widget value.
double valueFromWidget() const override
Returns the widget value.
void enableAutomaticUpdatePrivate() override
Enables automatic update, which causes the setting to be updated immediately when the widget value is...
bool setSettingFromWidget() const override
Sets the setting value from the widget value The wrapper must be configured before calling this medth...
bool setWidgetValue(const double &value) const override
Sets the widget value.
QString id() const override
This id of the type of settings it handles.
bool setValue(const T &value, const QString &dynamicKeyPart=QString()) const
Set settings value.
QString definitionKey() const
Returns settings entry defining key.
bool allowAlpha() const
Returns true if transparency is allowed for the color.
bool setWidgetValue(const int &value) const override
Sets the widget value.
bool setSettingFromWidget() const override
Sets the setting value from the widget value The wrapper must be configured before calling this medth...
void enableAutomaticUpdatePrivate() override
Enables automatic update, which causes the setting to be updated immediately when the widget value is...
QString id() const override
This id of the type of settings it handles.
int valueFromWidget() const override
Returns the widget value.
bool setWidgetValue(const QString &value) const override
Sets the widget value.
QString id() const override
This id of the type of settings it handles.
void enableAutomaticUpdatePrivate() override
Enables automatic update, which causes the setting to be updated immediately when the widget value is...
QString valueFromWidget() const override
Returns the widget value.
@ Data
Value is defined as data entry with Qt::UserRole.
bool setSettingFromWidget() const override
Sets the setting value from the widget value The wrapper must be configured before calling this medth...
QString valueFromWidget() const override
Returns the widget value.
bool setWidgetValue(const QString &value) const override
Sets the widget value.
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 medth...
void enableAutomaticUpdatePrivate() override
Enables automatic update, which causes the setting to be updated immediately when the widget value is...
#define QgsDebugError(str)