17#include <QAbstractTableModel>
31 const std::map<std::string, DataHolderLib::Color*>& colorLookupTable,
32 QObject* parent =
nullptr);
35 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
37 QVariant
data(
const QModelIndex& index,
int role)
const override;
39 int rowCount(
const QModelIndex& parent = QModelIndex())
const override
45 QVariant
headerData(
int section, Qt::Orientation orientation,
46 int role )
const override;
49 bool buildTable(
const std::map<std::string, DataHolderLib::Color*> &colorLookupTable );
Definition of the Color class.
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
QVariant data(const QModelIndex &index, int role) const override
ColorTableModel(const std::map< std::string, DataHolderLib::Color * > &colorLookupTable, QObject *parent=nullptr)
bool buildTable(const std::map< std::string, DataHolderLib::Color * > &colorLookupTable)
int rowCount(const QModelIndex &parent=QModelIndex()) const override
~ColorTableModel() override
int columnCount(const QModelIndex &parent=QModelIndex()) const override
QList< QPair< QString, QColor > > _listOfPairs