#include <pqColorTableModel.h>
List of all members.
Signals |
| void | colorChanged (int index, const QColor &color) |
| void | colorRangeChanged (int first, int last) |
Public Member Functions |
| | pqColorTableModel (QObject *parent=0) |
| virtual | ~pqColorTableModel () |
| int | getTableSize () const |
| void | setTableSize (int tableSize) |
| void | getColor (int index, QColor &color) const |
| void | getColor (const QModelIndex &index, QColor &color) const |
| void | setColor (int index, const QColor &color) |
| void | setColor (const QModelIndex &index, const QColor &color) |
| void | buildGradient (const QModelIndex &first, const QModelIndex &last) |
|
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| | Gets the number of rows for a given index.
|
| virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| | Gets a model index for a given location.
|
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| | Gets the data for a given model index.
|
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| | Gets the flags for a given model index.
|
Detailed Description
Definition at line 47 of file pqColorTableModel.h.
Constructor & Destructor Documentation
| pqColorTableModel::pqColorTableModel |
( |
QObject * |
parent = 0 | ) |
|
| virtual pqColorTableModel::~pqColorTableModel |
( |
| ) |
[virtual] |
Member Function Documentation
| virtual int pqColorTableModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const [virtual] |
Gets the number of rows for a given index.
- Parameters:
-
- Returns:
- The number of rows for the given index.
| virtual QModelIndex pqColorTableModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent = QModelIndex() |
|
) |
| const [virtual] |
Gets a model index for a given location.
- Parameters:
-
| row | The row number. |
| column | The column number. |
| parent | The parent index. |
- Returns:
- A model index for the given location.
| virtual QVariant pqColorTableModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const [virtual] |
Gets the data for a given model index.
- Parameters:
-
| index | The model index. |
| role | The role to get data for. |
- Returns:
- The data for the given model index.
| virtual Qt::ItemFlags pqColorTableModel::flags |
( |
const QModelIndex & |
index | ) |
const [virtual] |
Gets the flags for a given model index.
The flags for an item indicate if it is enabled, editable, etc.
- Parameters:
-
- Returns:
- The flags for the given model index.
| int pqColorTableModel::getTableSize |
( |
| ) |
const [inline] |
| void pqColorTableModel::setTableSize |
( |
int |
tableSize | ) |
|
| void pqColorTableModel::getColor |
( |
int |
index, |
|
|
QColor & |
color |
|
) |
| const |
| void pqColorTableModel::getColor |
( |
const QModelIndex & |
index, |
|
|
QColor & |
color |
|
) |
| const |
| void pqColorTableModel::setColor |
( |
int |
index, |
|
|
const QColor & |
color |
|
) |
| |
| void pqColorTableModel::setColor |
( |
const QModelIndex & |
index, |
|
|
const QColor & |
color |
|
) |
| |
| void pqColorTableModel::buildGradient |
( |
const QModelIndex & |
first, |
|
|
const QModelIndex & |
last |
|
) |
| |
| void pqColorTableModel::colorChanged |
( |
int |
index, |
|
|
const QColor & |
color |
|
) |
| [signal] |
| void pqColorTableModel::colorRangeChanged |
( |
int |
first, |
|
|
int |
last |
|
) |
| [signal] |
The documentation for this class was generated from the following file: