◆ ModelCompleter()
Digikam::ModelCompleter::ModelCompleter |
( |
QObject *const |
parent = nullptr | ) |
|
|
explicit |
◆ ~ModelCompleter()
Digikam::ModelCompleter::~ModelCompleter |
( |
| ) |
|
|
override |
◆ addItem()
void Digikam::ModelCompleter::addItem |
( |
const QString & |
item | ) |
|
◆ itemModel()
QAbstractItemModel * Digikam::ModelCompleter::itemModel |
( |
| ) |
const |
◆ items()
QStringList Digikam::ModelCompleter::items |
( |
| ) |
const |
◆ setItemModel()
void Digikam::ModelCompleter::setItemModel |
( |
QAbstractItemModel *const |
model, |
|
|
int |
uniqueIdRole, |
|
|
int |
displayRole = Qt::DisplayRole |
|
) |
| |
If the given model is != null, the model is used to populate the completion for this text field.
- Parameters
-
model | to fill from or null for manual mode |
uniqueIdRole | a role for which the model will return a unique integer for each entry |
displayRole | the role to retrieve the text for completion, default is Qt::DisplayRole. |
Referenced by Digikam::SearchTextBarDb::setModel().
◆ setList()
void Digikam::ModelCompleter::setList |
( |
const QStringList & |
list | ) |
|
◆ signalActivated
void Digikam::ModelCompleter::signalActivated |
( |
| ) |
|
|
signal |
◆ signalHighlighted
void Digikam::ModelCompleter::signalHighlighted |
( |
int |
albumId | ) |
|
|
signal |
The documentation for this class was generated from the following files: