add Map inverse geocoding
add minimum/maximum to ScrollSpinBox
This commit is contained in:
@@ -138,6 +138,13 @@ PIVariantMap PIVariantEditors::NumberBase::attributes() const {
|
||||
ret[Attribute::expression] = Q2PIString(w->expression());
|
||||
}
|
||||
} break;
|
||||
case tScrollSpinBox: {
|
||||
auto * w = qobject_cast<ScrollSpinBox *>(widget);
|
||||
if (w) {
|
||||
ret[Attribute::minimum] = w->minimum();
|
||||
ret[Attribute::maximum] = w->maximum();
|
||||
}
|
||||
} break;
|
||||
default: break;
|
||||
}
|
||||
return ret;
|
||||
@@ -247,6 +254,8 @@ void PIVariantEditors::NumberBase::applyAttributes(const PIVariantMap & a) {
|
||||
case tScrollSpinBox: {
|
||||
auto * w = qobject_cast<ScrollSpinBox *>(widget);
|
||||
if (!w) return;
|
||||
w->setMinimum(min);
|
||||
w->setMaximum(max);
|
||||
} break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user