UI: Add LineEditChanged and LineEditCanceled

These functions allow item delegates (editors) or item widgets with
event filters to detect whether a user has finished editing a line edit
control.  This separates the code so it can be used elsewhere than just
in the source tree widget.
This commit is contained in:
jp9000
2019-08-08 03:25:33 -07:00
parent a2e8741449
commit d5d8492bb3
3 changed files with 40 additions and 19 deletions

View File

@@ -102,3 +102,6 @@ static inline Qt::ConnectionType WaitConnection()
? Qt::DirectConnection
: Qt::BlockingQueuedConnection;
}
bool LineEditCanceled(QEvent *event);
bool LineEditChanged(QEvent *event);