forked from qt-creator/qt-creator
FancyLineEdit: Refactor class
Rename the code that evaluates the text and make it a public slot. Change-Id: I843bf505fa6e33661fc840a1fd2ec13ceb210037 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -453,7 +453,7 @@ QString PathChooser::errorMessage() const
|
||||
|
||||
void PathChooser::triggerChanged()
|
||||
{
|
||||
d->m_lineEdit->triggerChanged();
|
||||
d->m_lineEdit->validate();
|
||||
}
|
||||
|
||||
void PathChooser::setAboutToShowContextMenuHandler(PathChooser::AboutToShowContextMenuHandler handler)
|
||||
@@ -616,7 +616,7 @@ void PathChooser::setExpectedKind(Kind expected)
|
||||
if (d->m_acceptingKind == expected)
|
||||
return;
|
||||
d->m_acceptingKind = expected;
|
||||
d->m_lineEdit->triggerChanged();
|
||||
d->m_lineEdit->validate();
|
||||
}
|
||||
|
||||
PathChooser::Kind PathChooser::expectedKind() const
|
||||
|
||||
Reference in New Issue
Block a user