27#include "moc_qgssettingseditorwidgetwrapperimpl.cpp"
29using namespace Qt::StringLiterals;
56 QObject::connect( this->
mEditor, &QLineEdit::textChanged,
this, [
this](
const QString &text ) {
83 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
104 mEditor->setCurrentIndex( idx );
121 QObject::connect(
mEditor, &QComboBox::currentTextChanged,
this, [
this](
const QString ¤tText ) {
122 QString textValue = currentText;
124 textValue =
mEditor->currentData().toString();
151 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
181 QObject::connect( this->
mEditor, &QCheckBox::clicked,
this, [
this](
bool checked ) {
208 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
239 QObject::connect( this->
mEditor, &QGroupBox::clicked,
this, [
this](
bool checked ) {
266 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
302 QObject::connect( this->
mEditor, qOverload<int>( &QSpinBox::valueChanged ),
this, [
this](
int value ) {
329 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
331 return std::numeric_limits<int>::quiet_NaN();
360 QObject::connect( this->
mEditor, qOverload<double>( &QDoubleSpinBox::valueChanged ),
this, [
this](
double value ) {
387 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
389 return std::numeric_limits<double>::quiet_NaN();
456 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.
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...
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 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)