KWin
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Types | Public Member Functions | List of all members
KWin::RulePolicy Class Reference

#include <optionsmodel.h>

Inheritance diagram for KWin::RulePolicy:
KWin::OptionsModel

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< Datam_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
 

Detailed Description

Definition at line 103 of file optionsmodel.h.

Member Enumeration Documentation

◆ Type

Enumerator
NoPolicy 
StringMatch 
SetRule 
ForceRule 

Definition at line 106 of file optionsmodel.h.

Constructor & Destructor Documentation

◆ RulePolicy()

KWin::RulePolicy::RulePolicy ( Type type)
inline

Definition at line 114 of file optionsmodel.h.

Member Function Documentation

◆ policyKey()

QString KWin::RulePolicy::policyKey ( const QString & key) const

Definition at line 180 of file optionsmodel.cpp.

◆ type()

RulePolicy::Type KWin::RulePolicy::type ( ) const

Definition at line 167 of file optionsmodel.cpp.

◆ value()

int KWin::RulePolicy::value ( ) const

Definition at line 172 of file optionsmodel.cpp.


The documentation for this class was generated from the following files: