27#include "moc_qgssettingseditorwidgetwrapperimpl.cpp"
29using namespace Qt::StringLiterals;
91 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
137 mEditor->setCurrentIndex( idx );
154 QObject::connect(
mEditor, &QComboBox::currentTextChanged,
this, [
this](
const QString ¤tText ) {
155 QString textValue = currentText;
157 textValue =
mEditor->currentData().toString();
184 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
249 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
315 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
361 QObject::connect( this->
mEditor, qOverload<int>( &QSpinBox::valueChanged ),
this, [
this](
int value ) { this->
mSetting->setValue( value, this->
mDynamicKeyPartList ); } );
386 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
388 return std::numeric_limits<int>::quiet_NaN();
427 QObject::connect( this->
mEditor, qOverload<double>( &QDoubleSpinBox::valueChanged ),
this, [
this](
double value ) { this->
mSetting->setValue( value, this->
mDynamicKeyPartList ); } );
452 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
454 return std::numeric_limits<double>::quiet_NaN();
529 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
@ Double
Double precision number.
QgsSettingsBoolCheckBoxWrapper(QObject *parent=nullptr)
Constructor of the factory.
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.
void configureEditorPrivateImplementation() override
To be re-implemented to implemeent type specific configuration (e.g. opacity for colors).
bool valueFromWidget() const override
Returns the widget value.
QString id() const override
This id of the type of settings it handles.
bool setWidgetValue(const bool &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...
QgsSettingsBoolGroupBoxWrapper(QObject *parent=nullptr)
Constructor of the factory.
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...
QgsSettingsDoubleSpinBoxWrapper(QObject *parent=nullptr)
Constructor of the factory.
bool setWidgetValue(const double &value) const override
Sets the widget value.
QString id() const override
This id of the type of settings it handles.
Represents a settings entry and provides methods for reading and writing settings values.
A boolean settings entry.
An integer settings entry.
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...
QgsSettingsIntegerSpinBoxWrapper(QObject *parent=nullptr)
Constructor of the factory.
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.
QgsSettingsStringComboBoxWrapper(QObject *parent=nullptr)
Constructor of the factory.
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.
Mode
Mode to determine if the value is hold in the combo box text or data.
@ 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.
QgsSettingsStringLineEditWrapper(QObject *parent=nullptr)
Constructor of the factory.
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)