26#include "moc_qgssettingseditorwidgetwrapperimpl.cpp"
53 QObject::connect( this->
mEditor, &QLineEdit::textChanged,
this, [
this](
const QString &text ) {
80 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
101 mEditor->setCurrentIndex( idx );
111 QgsDebugError( QStringLiteral(
"Settings editor not set for %1" ).arg(
mSetting->definitionKey() ) );
118 QObject::connect(
mEditor, &QComboBox::currentTextChanged,
this, [
this](
const QString ¤tText ) {
119 QString textValue = currentText;
121 textValue =
mEditor->currentData().toString();
135 QgsDebugError( QStringLiteral(
"Settings editor not set for %1" ).arg(
mSetting->definitionKey() ) );
148 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
171 QgsDebugError( QStringLiteral(
"Settings editor not set for %1" ).arg(
mSetting->definitionKey() ) );
178 QObject::connect( this->
mEditor, &QCheckBox::clicked,
this, [
this](
bool checked ) {
192 QgsDebugError( QStringLiteral(
"Settings editor not set for %1" ).arg(
mSetting->definitionKey() ) );
205 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
229 QgsDebugError( QStringLiteral(
"Settings editor not set for %1" ).arg(
mSetting->definitionKey() ) );
236 QObject::connect( this->
mEditor, qOverload<int>( &QSpinBox::valueChanged ),
this, [
this](
int value ) {
250 QgsDebugError( QStringLiteral(
"Settings editor not set for %1" ).arg(
mSetting->definitionKey() ) );
263 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
265 return std::numeric_limits<int>::quiet_NaN();
287 QgsDebugError( QStringLiteral(
"Settings editor not set for %1" ).arg(
mSetting->definitionKey() ) );
294 QObject::connect( this->
mEditor, qOverload<double>( &QDoubleSpinBox::valueChanged ),
this, [
this](
double value ) {
308 QgsDebugError( QStringLiteral(
"Settings editor not set for %1" ).arg(
mSetting->definitionKey() ) );
321 QgsDebugError( QString(
"editor is not set, returning a non-existing value" ) );
323 return std::numeric_limits<double>::quiet_NaN();
344 QgsDebugError( QStringLiteral(
"Settings editor not set for %1" ).arg(
mSetting->definitionKey() ) );
357 QgsDebugError( QStringLiteral(
"Settings editor not set for %1" ).arg(
mSetting->definitionKey() ) );
377 QgsDebugError( QStringLiteral(
"Settings editor not set for %1" ).arg(
mSetting->definitionKey() ) );
390 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 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)