Public Member Functions | Protected Slots | List of all members
pqColorTableModel Class Reference

#include <pqColorTableModel.h>

Inherits QAbstractTableModel.

Public Member Functions

 pqColorTableModel (pqColorOpacityEditorWidget *widget, QObject *parentObject=nullptr)
 ~pqColorTableModel () override
Qt::ItemFlags flags (const QModelIndex &idx) const override
 All columns are editable. More...
bool setData (const QModelIndex &idx, const QVariant &value, int role=Qt::EditRole) override
int rowCount (const QModelIndex &parent=QModelIndex()) const override
int columnCount (const QModelIndex &parent=QModelIndex()) const override
QVariant data (const QModelIndex &idx, int role=Qt::DisplayRole) const override
QVariant headerData (int section, Qt::Orientation orientation, int role) const override

Protected Slots

void controlPointsChanged ()
void updatePoint (const QModelIndex &idx)

Detailed Description

Definition at line 16 of file pqColorTableModel.h.

Constructor & Destructor Documentation

◆ pqColorTableModel()

pqColorTableModel::pqColorTableModel ( pqColorOpacityEditorWidget widget,
QObject *  parentObject = nullptr 

◆ ~pqColorTableModel()

pqColorTableModel::~pqColorTableModel ( )

Member Function Documentation

◆ flags()

Qt::ItemFlags pqColorTableModel::flags ( const QModelIndex &  idx) const

All columns are editable.

The first and last value in the first column are not editable as they are set by the range.

◆ setData()

bool pqColorTableModel::setData ( const QModelIndex &  idx,
const QVariant &  value,
int  role = Qt::EditRole 

◆ rowCount()

int pqColorTableModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

◆ columnCount()

int pqColorTableModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

◆ data()

QVariant pqColorTableModel::data ( const QModelIndex &  idx,
int  role = Qt::DisplayRole 
) const

◆ headerData()

QVariant pqColorTableModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const

◆ controlPointsChanged

void pqColorTableModel::controlPointsChanged ( )

◆ updatePoint

void pqColorTableModel::updatePoint ( const QModelIndex &  idx)

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