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 );
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
int columnCount(const QModelIndex &idx) const
Definition: kdganttproxymodel.cpp:150
Definition: kdganttglobal.h:207
QModelIndex mapFromSource(const QModelIndex &idx) const
Definition: kdganttproxymodel.cpp:72
Definition: kdganttglobal.h:208
int rowCount(const QModelIndex &idx) const
Definition: kdganttproxymodel.cpp:144
Definition: kdganttglobal.h:205
Definition: kdganttproxymodel.h:31
Definition: kdganttglobal.h:206
QVariant data(const QModelIndex &idx, int role=Qt::DisplayRole) const
Definition: kdganttproxymodel.cpp:155
void setColumn(int ganttrole, int col)
Definition: kdganttproxymodel.cpp:109
void setRole(int ganttrole, int role)
Definition: kdganttproxymodel.cpp:119
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.