kdgantt2
kdganttproxymodel.cpp
Go to the documentation of this file.
90 return BASE::mapFromSource( sourceIdx.model()?sourceIdx.model()->index( sourceIdx.row(),0,sourceIdx.parent()):QModelIndex());
165 qDebug() << "mapping role"<<static_cast<ItemDataRole>(role)<<"to"<<static_cast<ItemDataRole>(srole);
167 << "value="<<sourceModel()->data( sourceModel()->index( proxyIdx.row(), scol, mapToSource( proxyIdx.parent() ) ), srole );
171 return model->data( model->index( proxyIdx.row(), scol, mapToSource( proxyIdx.parent() ) ), srole );
184 return model->setData( model->index( proxyIdx.row(), scol, mapToSource( proxyIdx.parent() ) ), value, srole );
virtual int rowCount(const QModelIndex &parent) const =0
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
Definition: kdganttglobal.h:204
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: kdganttforwardingproxymodel.cpp:261
bool setData(const QModelIndex &idx, const QVariant &value, int role=Qt::EditRole)
Definition: kdganttproxymodel.cpp:174
QModelIndex mapToSource(const QModelIndex &proxyIdx) const
Definition: kdganttproxymodel.cpp:94
void reset()
int columnCount(const QModelIndex &idx) const
Definition: kdganttproxymodel.cpp:150
bool isValid() const
Definition: kdganttglobal.h:207
QModelIndex mapFromSource(const QModelIndex &idx) const
Definition: kdganttproxymodel.cpp:72
int row() const
virtual QVariant data(const QModelIndex &index, int role) const =0
Definition: kdganttglobal.h:208
QModelIndex parent() const
int rowCount(const QModelIndex &idx) const
Definition: kdganttproxymodel.cpp:144
Definition: kdganttglobal.h:205
QModelIndex child(int row, int column) const
QAbstractItemModel * sourceModel() const
Definition: kdganttproxymodel.h:31
const QAbstractItemModel * model() const
Definition: kdganttglobal.h:206
virtual bool hasChildren(const QModelIndex &parent) const
int column() const
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const =0
QVariant data(const QModelIndex &idx, int role=Qt::DisplayRole) const
Definition: kdganttproxymodel.cpp:155
void setColumn(int ganttrole, int col)
Definition: kdganttproxymodel.cpp:109
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const =0
void setRole(int ganttrole, int role)
Definition: kdganttproxymodel.cpp:119
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.