kdgantt2
kdganttsummaryhandlingproxymodel.cpp
Go to the documentation of this file.
167 void SummaryHandlingProxyModel::sourceDataChanged( const QModelIndex& from, const QModelIndex& to )
200 void SummaryHandlingProxyModel::sourceRowsAboutToBeInserted( const QModelIndex & parentIdx, int start, int end )
206 void SummaryHandlingProxyModel::sourceRowsAboutToBeRemoved( const QModelIndex & parentIdx, int start, int end )
234 //qDebug() << "SummaryHandlingProxyModel::data(): Looking up summary for " << proxyIndex << role;
249 bool SummaryHandlingProxyModel::setData( const QModelIndex& index, const QVariant& value, int role )
316 assertEqual( model.data( model.index( 0, 0, topidx ), KDGantt::ItemTypeRole ).toInt(), KDGantt::TypeTask );
318 QDateTime task1startdt = model.data( model.index( 0, 0, topidx ), KDGantt::StartTimeRole ).toDateTime();
void sourceColumnsAboutToBeRemoved(const QModelIndex &idx, int start, int end)
Definition: kdganttsummaryhandlingproxymodel.cpp:192
virtual ~SummaryHandlingProxyModel()
Definition: kdganttsummaryhandlingproxymodel.cpp:127
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Definition: kdganttsummaryhandlingproxymodel.cpp:249
Definition: kdganttglobal.h:215
void sourceRowsAboutToBeInserted(const QModelIndex &idx, int start, int end)
Definition: kdganttsummaryhandlingproxymodel.cpp:200
bool cacheLookup(const QModelIndex &idx, QPair< QDateTime, QDateTime > *result) const
Definition: kdganttsummaryhandlingproxymodel.cpp:52
void sourceModelReset()
Definition: kdganttsummaryhandlingproxymodel.cpp:155
QHash< QModelIndex, QPair< QDateTime, QDateTime > > cached_summary_items
Definition: kdganttsummaryhandlingproxymodel_p.h:49
Definition: kdganttglobal.h:204
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: kdganttforwardingproxymodel.cpp:261
void setSourceModel(QAbstractItemModel *model)
Definition: kdganttsummaryhandlingproxymodel.cpp:149
QModelIndex mapFromSource(const QModelIndex &sourceIndex) const
Definition: kdganttforwardingproxymodel.cpp:46
Qt::ItemFlags flags(const QModelIndex &idx) const
Definition: kdganttsummaryhandlingproxymodel.cpp:213
Definition: kdganttglobal.h:214
void insertInCache(const SummaryHandlingProxyModel *model, const QModelIndex &idx) const
Definition: kdganttsummaryhandlingproxymodel.cpp:66
Definition: kdganttglobal.h:207
void clearCache() const
Definition: kdganttsummaryhandlingproxymodel.cpp:112
void sourceDataChanged(const QModelIndex &from, const QModelIndex &to)
Definition: kdganttsummaryhandlingproxymodel.cpp:167
Definition: kdganttglobal.h:205
void sourceLayoutChanged()
Definition: kdganttsummaryhandlingproxymodel.cpp:161
QVariant data(const QModelIndex &proxyIndex, int role=Qt::DisplayRole) const
Definition: kdganttsummaryhandlingproxymodel.cpp:225
KDAB_SCOPED_UNITTEST_SIMPLE(KDGantt, SummaryHandlingProxyModel,"test")
Definition: kdganttsummaryhandlingproxymodel.cpp:286
Proxy model that supports summary gantt items.
Definition: kdganttsummaryhandlingproxymodel.h:31
QModelIndex mapToSource(const QModelIndex &proxyIndex) const
Definition: kdganttforwardingproxymodel.cpp:67
QModelIndex parent(const QModelIndex &idx) const
Definition: kdganttforwardingproxymodel.cpp:267
SummaryHandlingProxyModel(QObject *parent=0)
Definition: kdganttsummaryhandlingproxymodel.cpp:120
void sourceRowsAboutToBeRemoved(const QModelIndex &, int start, int end)
Definition: kdganttsummaryhandlingproxymodel.cpp:206
void sourceColumnsAboutToBeInserted(const QModelIndex &idx, int start, int end)
Definition: kdganttsummaryhandlingproxymodel.cpp:184
void removeFromCache(const QModelIndex &idx) const
Definition: kdganttsummaryhandlingproxymodel.cpp:107
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.