Exposes a FontSearch's current results as a list model for the keyboard.
More...
#include <fontsearchmodel.h>
|
| | FontSearchModel (FontSearch *search) |
| virtual int | rowCount (const QModelIndex &parent) const override |
| | Row count.
|
| virtual QVariant | data (const QModelIndex &index, int role) const override |
| | Row+role value.
|
| virtual QHash< int, QByteArray > | roleNames () const override |
| | Role -> QML name.
|
Exposes a FontSearch's current results as a list model for the keyboard.
Wraps a FontSearch (see CreditsModel for the convention); as the search is filtered, the model refreshes so the on-screen keyboard's grid updates. Exposed as brg.fontSearchModel.
- See also
- FontSearch.
Definition at line 31 of file fontsearchmodel.h.
◆ FontSearchRoles
◆ FontSearchModel()
| FontSearchModel::FontSearchModel |
( |
FontSearch * | search | ) |
|
◆ data()
| QVariant FontSearchModel::data |
( |
const QModelIndex & | index, |
|
|
int | role ) const |
|
overridevirtual |
◆ roleNames()
| QHash< int, QByteArray > FontSearchModel::roleNames |
( |
| ) |
const |
|
overridevirtual |
◆ rowCount()
| int FontSearchModel::rowCount |
( |
const QModelIndex & | parent | ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: