Qt Utilities  5.7.1
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
Signals | Public Member Functions | Properties | List of all members
Dialogs::PaletteModel Class Reference

The PaletteModel class is used by PaletteEditor. More...

#include <paletteeditor.h>

Inheritance diagram for Dialogs::PaletteModel:
[legend]
Collaboration diagram for Dialogs::PaletteModel:
[legend]

Signals

void paletteChanged (const QPalette &palette)
 

Public Member Functions

 PaletteModel (QObject *parent=nullptr)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role)
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
QPalette getPalette () const
 
void setPalette (const QPalette &palette, const QPalette &parentPalette)
 
QPalette::ColorRole colorRole () const
 
void setCompute (bool on)
 

Properties

QPalette::ColorRole colorRole
 

Detailed Description

The PaletteModel class is used by PaletteEditor.

Definition at line 79 of file paletteeditor.h.

Constructor & Destructor Documentation

◆ PaletteModel()

Dialogs::PaletteModel::PaletteModel ( QObject *  parent = nullptr)
explicit

Definition at line 192 of file paletteeditor.cpp.

Member Function Documentation

◆ colorRole()

QPalette::ColorRole Dialogs::PaletteModel::colorRole ( ) const
inline

Definition at line 95 of file paletteeditor.h.

◆ columnCount()

int Dialogs::PaletteModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 210 of file paletteeditor.cpp.

◆ data()

QVariant Dialogs::PaletteModel::data ( const QModelIndex &  index,
int  role 
) const

Definition at line 215 of file paletteeditor.cpp.

◆ flags()

Qt::ItemFlags Dialogs::PaletteModel::flags ( const QModelIndex &  index) const

Definition at line 312 of file paletteeditor.cpp.

◆ getPalette()

QPalette Dialogs::PaletteModel::getPalette ( ) const

Definition at line 334 of file paletteeditor.cpp.

◆ headerData()

QVariant Dialogs::PaletteModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

Definition at line 319 of file paletteeditor.cpp.

◆ paletteChanged

void Dialogs::PaletteModel::paletteChanged ( const QPalette &  palette)
signal

◆ rowCount()

int Dialogs::PaletteModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 205 of file paletteeditor.cpp.

◆ setCompute()

void Dialogs::PaletteModel::setCompute ( bool  on)
inline

Definition at line 99 of file paletteeditor.h.

◆ setData()

bool Dialogs::PaletteModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)

Definition at line 240 of file paletteeditor.cpp.

◆ setPalette()

void Dialogs::PaletteModel::setPalette ( const QPalette &  palette,
const QPalette &  parentPalette 
)

Definition at line 339 of file paletteeditor.cpp.

Property Documentation

◆ colorRole

QPalette::ColorRole Dialogs::PaletteModel::colorRole
read

Definition at line 81 of file paletteeditor.h.


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