![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
Signals | |
void | signalActivated () |
void | signalHighlighted (int albumId) |
Public Member Functions | |
ModelCompleter (QObject *const parent=nullptr) | |
void | addItem (const QString &item) |
QAbstractItemModel * | itemModel () const |
QStringList | items () const |
void | 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. | |
void | setList (const QStringList &list) |
void Digikam::ModelCompleter::setItemModel | ( | QAbstractItemModel *const | model, |
int | uniqueIdRole, | ||
int | displayRole = Qt::DisplayRole |
||
) |
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. |