forked from qt-creator/qt-creator
Utils: Validate pathchooser on setting default value
When changing the default value we may also change the current
state of validity, so trigger a validation immediately.
Amends b938764820
.
Change-Id: I99bce422d3a0aa2b6418495b4a2c69255df06674
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -526,6 +526,7 @@ void PathChooser::setDefaultValue(const QString &defaultValue)
|
|||||||
{
|
{
|
||||||
d->m_defaultValue = defaultValue;
|
d->m_defaultValue = defaultValue;
|
||||||
d->m_lineEdit->setPlaceholderText(defaultValue);
|
d->m_lineEdit->setPlaceholderText(defaultValue);
|
||||||
|
d->m_lineEdit->validate();
|
||||||
}
|
}
|
||||||
|
|
||||||
FancyLineEdit::ValidationFunction PathChooser::defaultValidationFunction() const
|
FancyLineEdit::ValidationFunction PathChooser::defaultValidationFunction() const
|
||||||
|
Reference in New Issue
Block a user