|
KWin
|
#include <optionsmodel.h>
Public Types | |
| enum | Type { NoPolicy , StringMatch , SetRule , ForceRule } |
Public Types inherited from KWin::OptionsModel | |
| enum | OptionsRole { ValueRole = Qt::UserRole , IconNameRole , OptionTypeRole , BitMaskRole } |
| enum | OptionType { NormalOption = 0 , ExclusiveOption , SelectAllOption } |
Public Member Functions | |
| RulePolicy (Type type) | |
| Type | type () const |
| int | value () const |
| QString | policyKey (const QString &key) const |
Public Member Functions inherited from KWin::OptionsModel | |
| OptionsModel (QList< Data > data={}, bool useFlags=false) | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| QHash< int, QByteArray > | roleNames () const override |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| QVariant | value () const |
| void | setValue (QVariant value) |
| void | resetValue () |
| bool | useFlags () const |
| QVariant | allValues () const |
| uint | allOptionsMask () const |
| void | updateModelData (const QList< Data > &data) |
| Q_INVOKABLE int | indexOf (const QVariant &value) const |
| Q_INVOKABLE QString | textOfValue (const QVariant &value) const |
| int | selectedIndex () const |
| uint | bitMask (int index) const |
Additional Inherited Members | |
Signals inherited from KWin::OptionsModel | |
| void | selectedIndexChanged (int index) |
| void | modelUpdated () |
Public Attributes inherited from KWin::OptionsModel | |
| QList< Data > | m_data |
Protected Attributes inherited from KWin::OptionsModel | |
| int | m_index = 0 |
| bool | m_useFlags = false |
Properties inherited from KWin::OptionsModel | |
| int | selectedIndex |
| int | allOptionsMask |
| int | useFlags |
Definition at line 103 of file optionsmodel.h.
| Enumerator | |
|---|---|
| NoPolicy | |
| StringMatch | |
| SetRule | |
| ForceRule | |
Definition at line 106 of file optionsmodel.h.
|
inline |
Definition at line 114 of file optionsmodel.h.
| QString KWin::RulePolicy::policyKey | ( | const QString & | key | ) | const |
Definition at line 180 of file optionsmodel.cpp.
| RulePolicy::Type KWin::RulePolicy::type | ( | ) | const |
Definition at line 167 of file optionsmodel.cpp.
| int KWin::RulePolicy::value | ( | ) | const |
Definition at line 172 of file optionsmodel.cpp.