mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
OP-1809 Changed Min/Max limits
This commit is contained in:
parent
4bd2e889ce
commit
62bd0115fe
@ -303,12 +303,12 @@ void NotifyPluginOptionsPage::addDynamicFieldWidget(UAVObjectField *objField)
|
|||||||
if (NotifyPluginOptionsPage::conditionValues.indexOf(_dynamicFieldCondition->currentText()) == NotifyPluginOptionsPage::inrange) {
|
if (NotifyPluginOptionsPage::conditionValues.indexOf(_dynamicFieldCondition->currentText()) == NotifyPluginOptionsPage::inrange) {
|
||||||
_dynamicFieldWidget = new QLineEdit(_form);
|
_dynamicFieldWidget = new QLineEdit(_form);
|
||||||
|
|
||||||
(static_cast<QLineEdit *>(_dynamicFieldWidget))->setInputMask("#999.99 : #999.99;");
|
(static_cast<QLineEdit *>(_dynamicFieldWidget))->setInputMask("#99999.99 : #99999.99;");
|
||||||
(static_cast<QLineEdit *>(_dynamicFieldWidget))->setText("0000000000");
|
(static_cast<QLineEdit *>(_dynamicFieldWidget))->setText("0000000000");
|
||||||
(static_cast<QLineEdit *>(_dynamicFieldWidget))->setCursorPosition(0);
|
(static_cast<QLineEdit *>(_dynamicFieldWidget))->setCursorPosition(0);
|
||||||
} else {
|
} else {
|
||||||
_dynamicFieldWidget = new QDoubleSpinBox(_form);
|
_dynamicFieldWidget = new QDoubleSpinBox(_form);
|
||||||
(dynamic_cast<QDoubleSpinBox *>(_dynamicFieldWidget))->setRange(-999.99, 999.99);
|
(dynamic_cast<QDoubleSpinBox *>(_dynamicFieldWidget))->setRange(-99999.99, 99999.99);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user