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();
std::string toStdString() const
QString toString(Qt::DateFormat format) const
void sourceColumnsAboutToBeRemoved(const QModelIndex &idx, int start, int end)
Definition: kdganttsummaryhandlingproxymodel.cpp:192
virtual int rowCount(const QModelIndex &parent) const =0
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
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
QDateTime toDateTime() const
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
const_iterator constFind(const Key &key) const
void setSourceModel(QAbstractItemModel *model)
Definition: kdganttsummaryhandlingproxymodel.cpp:149
QModelIndex mapFromSource(const QModelIndex &sourceIndex) const
Definition: kdganttforwardingproxymodel.cpp:46
virtual void setData(const QVariant &value, int role)
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
const_iterator constEnd() const
Definition: kdganttglobal.h:207
int toInt(bool *ok) const
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
void appendRow(const QList< QStandardItem * > &items)
const char * constData() const
virtual void setSourceModel(QAbstractItemModel *sourceModel)
void clearCache() const
Definition: kdganttsummaryhandlingproxymodel.cpp:112
void sourceDataChanged(const QModelIndex &from, const QModelIndex &to)
Definition: kdganttsummaryhandlingproxymodel.cpp:167
virtual QVariant data(const QModelIndex &index, int role) const =0
Definition: kdganttglobal.h:205
virtual QModelIndex parent(const QModelIndex &index) const =0
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
QAbstractItemModel * sourceModel() const
QDateTime currentDateTime()
QByteArray toLatin1() const
bool isNull() const
QModelIndex mapToSource(const QModelIndex &proxyIndex) const
Definition: kdganttforwardingproxymodel.cpp:67
SummaryHandlingProxyModel(QObject *parent=0)
Definition: kdganttsummaryhandlingproxymodel.cpp:120
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
QString fromLatin1(const char *str, int size)
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Type type() const
QObject * parent() const
QDateTime addDays(int ndays) const
void appendRow(const QList< QStandardItem * > &items)
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
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
void removeFromCache(const QModelIndex &idx) const
Definition: kdganttsummaryhandlingproxymodel.cpp:107
typedef ItemFlags
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.