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:
Tobias Hunger
2015-10-12 14:57:20 +02:00
parent c455e78781
commit 629c24abdc
5 changed files with 11 additions and 28 deletions

View File

@@ -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