8 : QAbstractTableModel(parent),
9 m_Controller(controller),
14 m_DataSet = m_Controller->dataSet();
25 (
const QModelIndex & topLeft,
const QModelIndex & bottomRight)
27 emit dataChanged(topLeft, bottomRight);
44 if (parent.column() > 0) {
62 if (!index.isValid()) {
70 int row = index.row();
71 int col = index.column();
95 case Qt::DecorationRole:
112 (
int section, Qt::Orientation orientation,
int role)
const
114 if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
136 if (orientation == Qt::Vertical && role == Qt::DisplayRole) {
QString selectedColumn(int i) const
QVariant data(const QModelIndex &index, int role) const
QseGraphColumnsModel(QseGraphController *controller, QTableView *table, QObject *parent=0)
QseGraphController * m_Controller
bool selectedPlotY(int i) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
void emitDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
bool selectedPlotX(int i) const
int rowCount(const QModelIndex &parent=QModelIndex()) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
int selectedColumnCount() const
bool selectedPlotY2(int i) const