The PaletteModel class is used by PaletteEditor.
More...
#include <paletteeditor.h>
|
| PaletteModel (QObject *parent=nullptr) |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
|
QVariant | data (const QModelIndex &index, int role) const override |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
|
QPalette | getPalette () const |
|
void | setPalette (const QPalette &palette, const QPalette &parentPalette) |
|
QPalette::ColorRole | colorRole () const |
|
void | setCompute (bool on) |
|
The PaletteModel class is used by PaletteEditor.
Definition at line 74 of file paletteeditor.h.
◆ PaletteModel()
QtUtilities::PaletteModel::PaletteModel |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
◆ colorRole()
QPalette::ColorRole QtUtilities::PaletteModel::colorRole |
( |
| ) |
const |
|
inline |
◆ columnCount()
int QtUtilities::PaletteModel::columnCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
◆ data()
QVariant QtUtilities::PaletteModel::data |
( |
const QModelIndex & | index, |
|
|
int | role ) const |
|
override |
◆ flags()
Qt::ItemFlags QtUtilities::PaletteModel::flags |
( |
const QModelIndex & | index | ) |
const |
|
override |
◆ getPalette()
QPalette QtUtilities::PaletteModel::getPalette |
( |
| ) |
const |
◆ headerData()
QVariant QtUtilities::PaletteModel::headerData |
( |
int | section, |
|
|
Qt::Orientation | orientation, |
|
|
int | role = Qt::DisplayRole ) const |
|
override |
◆ paletteChanged
void QtUtilities::PaletteModel::paletteChanged |
( |
const QPalette & | palette | ) |
|
|
signal |
◆ rowCount()
int QtUtilities::PaletteModel::rowCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
◆ setCompute()
void QtUtilities::PaletteModel::setCompute |
( |
bool | on | ) |
|
|
inline |
◆ setData()
bool QtUtilities::PaletteModel::setData |
( |
const QModelIndex & | index, |
|
|
const QVariant & | value, |
|
|
int | role ) |
|
override |
◆ setPalette()
void QtUtilities::PaletteModel::setPalette |
( |
const QPalette & | palette, |
|
|
const QPalette & | parentPalette ) |
◆ colorRole
QPalette::ColorRole QtUtilities::PaletteModel::colorRole |
|
read |
The documentation for this class was generated from the following files: