minor changes

This commit is contained in:
fourtf
2018-10-20 19:15:15 +02:00
parent a2795dec38
commit 4f4d717a52
3 changed files with 30 additions and 25 deletions
+3 -2
View File
@@ -98,7 +98,8 @@ void SplitInput::initLayout()
// textEditLength visibility
getSettings()->showMessageLength.connect(
[this](const bool &value, auto) {
this->ui_.textEditLength->setHidden(!value);
// this->ui_.textEditLength->setHidden(!value);
this->editTextChanged();
},
this->managedConnections_);
}
@@ -376,7 +377,7 @@ void SplitInput::editTextChanged()
QString labelText;
if (text.length() == 0) {
if (text.length() == 0 || getSettings()->showMessageLength) {
labelText = "";
} else {
labelText = QString::number(text.length());