|
swift
|
Completer shared among multiple UI elements. More...
#include <sharedstringlistcompleter.h>
Public Member Functions | |
| CSharedStringListCompleter ()=default | |
| Constructor. | |
| bool | updateData (const QStringList &data, int cacheTimeMs) |
| Update data. | |
| void | clearData () |
| Clear completer data. | |
| bool | wasUpdatedWithinTime (int checkTimeMs) const |
| Was updated within check time. | |
| bool | contains (const QString &value, Qt::CaseSensitivity cs=Qt::CaseInsensitive) const |
| Contains the string completer the given value. | |
| QStringList | stringList () const |
| Values. | |
| QCompleter * | completer () const |
| Completer. | |
| operator QCompleter * () const | |
| Convert to completer. | |
Completer shared among multiple UI elements.
Normally used as static member
Definition at line 21 of file sharedstringlistcompleter.h.
| void swift::gui::CSharedStringListCompleter::clearData | ( | ) |
Clear completer data.
Definition at line 27 of file sharedstringlistcompleter.cpp.
|
inline |
Completer.
Definition at line 43 of file sharedstringlistcompleter.h.
| bool swift::gui::CSharedStringListCompleter::contains | ( | const QString & | value, |
| Qt::CaseSensitivity | cs = Qt::CaseInsensitive ) const |
Contains the string completer the given value.
Definition at line 34 of file sharedstringlistcompleter.cpp.
|
inline |
Convert to completer.
Definition at line 46 of file sharedstringlistcompleter.h.
| QStringList swift::gui::CSharedStringListCompleter::stringList | ( | ) | const |
Values.
Definition at line 39 of file sharedstringlistcompleter.cpp.
| bool swift::gui::CSharedStringListCompleter::updateData | ( | const QStringList & | data, |
| int | cacheTimeMs ) |
Update data.
Definition at line 10 of file sharedstringlistcompleter.cpp.
| bool swift::gui::CSharedStringListCompleter::wasUpdatedWithinTime | ( | int | checkTimeMs | ) | const |
Was updated within check time.
Definition at line 29 of file sharedstringlistcompleter.cpp.