21 #ifndef OPENPALETTEMODEL_H
22 #define OPENPALETTEMODEL_H
24 #include <QAbstractItemModel>
44 QModelIndex
index (
int row,
int column,
const QModelIndex & parent = QModelIndex() )
const;
45 QModelIndex parent (
const QModelIndex & index )
const;
46 Qt::ItemFlags flags (
const QModelIndex & index )
const;
47 QVariant data (
const QModelIndex & index,
int role = Qt::DisplayRole )
const;
48 QVariant headerData (
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const;
49 int rowCount (
const QModelIndex & parent = QModelIndex() )
const;
50 int columnCount (
const QModelIndex & parent = QModelIndex() )
const;
53 bool setData (
const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole );
57 bool isTopIndex(
const QModelIndex & index)
const;
60 void paletteChanged();
64 #endif // OPENPALETTEMODEL_H
Definition: openpalettemodel.h:36
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Standard reimplementations for an abstract item model (read-only)
Definition: openpalettemodel.cpp:33