|
|
|
@@ -195,7 +195,8 @@ void PropertyPanelController::showControlProperties(const std::string &control_i |
|
|
|
|
|
|
|
if (!has_control) |
|
|
|
{ |
|
|
|
ui_.controlTextEdit->setMaxLength(32767); |
|
|
|
ui_.controlTextEdit->setMaxLength( |
|
|
|
static_cast<int>(ProjectLimits::kMaximumHmiControlTextCharacters)); |
|
|
|
ui_.bindingAreaLabel->setVisible(false); |
|
|
|
ui_.bindingAreaComboBox->setVisible(false); |
|
|
|
ui_.bindingIndexLabel->setVisible(false); |
|
|
|
@@ -223,9 +224,7 @@ void PropertyPanelController::showControlProperties(const std::string &control_i |
|
|
|
} |
|
|
|
|
|
|
|
ui_.controlTextEdit->setMaxLength( |
|
|
|
control->type == HmiControlType::AlarmList |
|
|
|
? static_cast<int>(ProjectLimits::kMaximumAlarmTitleCharacters) |
|
|
|
: 32767); |
|
|
|
static_cast<int>(ProjectLimits::kMaximumHmiControlTextCharacters)); |
|
|
|
ui_.controlIdEdit->setText(fromUtf8(control->id)); |
|
|
|
ui_.controlTextEdit->setText(fromUtf8(control->text)); |
|
|
|
ui_.controlXSpinBox->setValue(control->bounds.x); |
|
|
|
|