#include <optionsmodel.h>
Definition at line 18 of file optionsmodel.h.
◆ OptionsRole
| Enumerator |
|---|
| ValueRole | |
| IconNameRole | |
| OptionTypeRole | |
| BitMaskRole | |
Definition at line 26 of file optionsmodel.h.
◆ OptionType
| Enumerator |
|---|
| NormalOption | Normal option
|
| ExclusiveOption | An exclusive option, so all other option items are deselected when this one is selected
|
| SelectAllOption | All option items are selected when this option item is selected
|
Definition at line 34 of file optionsmodel.h.
◆ OptionsModel()
| KWin::OptionsModel::OptionsModel |
( |
QList< Data > | data = {}, |
|
|
bool | useFlags = false ) |
|
inline |
◆ allOptionsMask()
| uint KWin::OptionsModel::allOptionsMask |
( |
| ) |
const |
◆ allValues()
| QVariant KWin::OptionsModel::allValues |
( |
| ) |
const |
◆ bitMask()
| uint KWin::OptionsModel::bitMask |
( |
int | index | ) |
const |
◆ data()
| QVariant KWin::OptionsModel::data |
( |
const QModelIndex & | index, |
|
|
int | role = Qt::DisplayRole ) const |
|
override |
◆ indexOf()
| int KWin::OptionsModel::indexOf |
( |
const QVariant & | value | ) |
const |
◆ modelUpdated
| void KWin::OptionsModel::modelUpdated |
( |
| ) |
|
|
signal |
◆ resetValue()
| void KWin::OptionsModel::resetValue |
( |
| ) |
|
◆ roleNames()
| QHash< int, QByteArray > KWin::OptionsModel::roleNames |
( |
| ) |
const |
|
override |
◆ rowCount()
| int KWin::OptionsModel::rowCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
◆ selectedIndex()
| int KWin::OptionsModel::selectedIndex |
( |
| ) |
const |
◆ selectedIndexChanged
| void KWin::OptionsModel::selectedIndexChanged |
( |
int | index | ) |
|
|
signal |
◆ setValue()
| void KWin::OptionsModel::setValue |
( |
QVariant | value | ) |
|
◆ textOfValue()
| QString KWin::OptionsModel::textOfValue |
( |
const QVariant & | value | ) |
const |
◆ updateModelData()
| void KWin::OptionsModel::updateModelData |
( |
const QList< Data > & | data | ) |
|
◆ useFlags()
| bool KWin::OptionsModel::useFlags |
( |
| ) |
const |
◆ value()
| QVariant KWin::OptionsModel::value |
( |
| ) |
const |
◆ m_data
| QList<Data> KWin::OptionsModel::m_data |
◆ m_index
| int KWin::OptionsModel::m_index = 0 |
|
protected |
◆ m_useFlags
| bool KWin::OptionsModel::m_useFlags = false |
|
protected |
◆ allOptionsMask
| int KWin::OptionsModel::allOptionsMask |
|
read |
◆ selectedIndex
| int KWin::OptionsModel::selectedIndex |
|
read |
◆ useFlags
| int KWin::OptionsModel::useFlags |
|
read |
The documentation for this class was generated from the following files: