Utils: emit validChanged for the delayed valid check

of FancyLineEdit and PathChooser

Change-Id: I9719d32928d8166dfae7844af4eefc94ca143eb1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2023-07-04 15:13:27 +02:00
parent c5a0ae6f34
commit 09c3413cf3
2 changed files with 3 additions and 0 deletions

View File

@@ -1122,6 +1122,7 @@ void StringAspect::addToLayout(LayoutItem &parent)
});
}
}
connect(d->m_pathChooserDisplay, &PathChooser::validChanged, this, &StringAspect::validChanged);
break;
case LineEditDisplay:
d->m_lineEditDisplay = createSubWidget<FancyLineEdit>();
@@ -1167,6 +1168,7 @@ void StringAspect::addToLayout(LayoutItem &parent)
});
parent.addItem(resetButton);
}
connect(d->m_lineEditDisplay, &FancyLineEdit::validChanged, this, &StringAspect::validChanged);
break;
case TextEditDisplay:
d->m_textEditDisplay = createSubWidget<QTextEdit>();

View File

@@ -507,6 +507,7 @@ public:
signals:
void checkedChanged();
void validChanged(bool validState);
protected:
void internalToGui() override;