#include <inputhistory.h>
Input history class.
Stores input stings and provides a search iterator. Input line history for frontends.
◆ InputHistory()
albert::InputHistory::InputHistory |
( |
| ) |
|
|
explicit |
◆ ~InputHistory()
albert::InputHistory::~InputHistory |
( |
| ) |
|
|
override |
◆ add()
Q_INVOKABLE void albert::InputHistory::add |
( |
const QString & |
str | ) |
|
Add text to history search.
- Note
- Skips empty strings and drops duplicates.
◆ next()
Q_INVOKABLE QString albert::InputHistory::next |
( |
const QString & |
substring = QString{} | ) |
|
Next distinct history item.
- Note
- Skips perfect matches.
◆ prev()
Q_INVOKABLE QString albert::InputHistory::prev |
( |
const QString & |
substring = QString{} | ) |
|
Previous distinct history item.
- Note
- Skips perfect matches.
◆ resetIterator()
Q_INVOKABLE void albert::InputHistory::resetIterator |
( |
| ) |
|
The documentation for this class was generated from the following file: