◆ CustomRoles
◆ ChoiceSearchModel()
Digikam::ChoiceSearchModel::ChoiceSearchModel |
( |
QObject *const |
parent = nullptr | ) |
|
|
explicit |
◆ checkedDisplayTexts()
QStringList Digikam::ChoiceSearchModel::checkedDisplayTexts |
( |
| ) |
const |
◆ checkedKeys() [1/2]
QVariantList Digikam::ChoiceSearchModel::checkedKeys |
( |
| ) |
const |
◆ checkedKeys() [2/2]
template<typename T >
QList< T > Digikam::ChoiceSearchModel::checkedKeys |
Returns the keys of all entries that are selected (checked), converted to a list of the template type. Supported for Int and QString types.
References m_entries, and T.
◆ checkStateChanged
void Digikam::ChoiceSearchModel::checkStateChanged |
( |
const QVariant & |
key, |
|
|
bool |
isChecked |
|
) |
| |
|
signal |
◆ data()
QVariant Digikam::ChoiceSearchModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ flags()
Qt::ItemFlags Digikam::ChoiceSearchModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ index()
QModelIndex Digikam::ChoiceSearchModel::index |
( |
int |
row, |
|
|
int |
column = 0 , |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const |
|
override |
◆ resetChecked()
void Digikam::ChoiceSearchModel::resetChecked |
( |
| ) |
|
◆ rowCount()
int Digikam::ChoiceSearchModel::rowCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
◆ setChecked() [1/4]
template<typename T >
void Digikam::ChoiceSearchModel::setChecked |
( |
const QList< T > & |
keys, |
|
|
bool |
checked = true |
|
) |
| |
Sets the check state of all the entries whose key is found in the list to checked.
References setChecked(), and T.
◆ setChecked() [2/4]
template<typename T >
void Digikam::ChoiceSearchModel::setChecked |
( |
const T & |
key, |
|
|
bool |
checked = true |
|
) |
| |
◆ setChecked() [3/4]
◆ setChecked() [4/4]
void Digikam::ChoiceSearchModel::setChecked |
( |
int |
index, |
|
|
bool |
checked |
|
) |
| |
|
protected |
◆ setChoice() [1/3]
void Digikam::ChoiceSearchModel::setChoice |
( |
const QMap< int, QString > & |
data | ) |
|
◆ setChoice() [2/3]
void Digikam::ChoiceSearchModel::setChoice |
( |
const QStringList & |
data | ) |
|
Sets the data from the given list, taking every first entry as the key, every second as the user displayable value.
References data(), m_entries, and value.
◆ setChoice() [3/3]
void Digikam::ChoiceSearchModel::setChoice |
( |
const QVariantList & |
data | ) |
|
Sets the data from the given list, taking every first entry as the key, every second as the user displayable value. Ensure that the QVariants' type is correct (identical for all even entries, QString for all odd entries).
References data(), m_entries, and value.
◆ setData()
bool Digikam::ChoiceSearchModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role |
|
) |
| |
|
override |
◆ m_entries
QList<Entry> Digikam::ChoiceSearchModel::m_entries |
|
protected |
The documentation for this class was generated from the following files: