KGantt
kganttsummaryhandlingproxymodel.cpp
127void SummaryHandlingProxyModel::sourceDataChanged( const QModelIndex& from, const QModelIndex& to )
160void SummaryHandlingProxyModel::sourceRowsAboutToBeInserted( const QModelIndex & parentIdx, int start, int end )
166void SummaryHandlingProxyModel::sourceRowsAboutToBeRemoved( const QModelIndex & parentIdx, int start, int end )
209bool SummaryHandlingProxyModel::setData( const QModelIndex& index, const QVariant& value, int role )
274 assertEqual( model.data( model.index( 0, 0, topidx ), KGantt::ItemTypeRole ).toInt(), KGantt::TypeTask );
276 QDateTime task1startdt = model.data( model.index( 0, 0, topidx ), KGantt::StartTimeRole ).toDateTime();
Proxy model that supports summary gantt items.
Qt::ItemFlags flags(const QModelIndex &idx) const override
Definition kganttsummaryhandlingproxymodel.cpp:173
void setSourceModel(QAbstractItemModel *model) override
Definition kganttsummaryhandlingproxymodel.cpp:109
SummaryHandlingProxyModel(QObject *parent=nullptr)
Definition kganttsummaryhandlingproxymodel.cpp:92
QVariant data(const QModelIndex &proxyIndex, int role=Qt::DisplayRole) const override
Definition kganttsummaryhandlingproxymodel.cpp:185
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
Definition kganttsummaryhandlingproxymodel.cpp:209
Q_SCRIPTABLE Q_NOREPLY void start()
virtual QVariant data(const QModelIndex &index, int role) const const=0
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList< int > &roles)
virtual Qt::ItemFlags flags(const QModelIndex &index) const const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const=0
virtual QModelIndex parent(const QModelIndex &index) const const=0
virtual int rowCount(const QModelIndex &parent) const const=0
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
virtual bool setData(const QModelIndex &index, const QVariant &value, int role) override
virtual void setSourceModel(QAbstractItemModel *sourceModel)
sourceModel
const char * constData() const const
QDateTime addDays(qint64 ndays) const const
QDateTime currentDateTime()
bool isNull() const const
bool isValid() const const
QString toString(QStringView format, QCalendar cal) const const
const_iterator constFind(const Key &key) const const
Q_EMITQ_EMIT
void appendRow(QStandardItem *item)
virtual void setData(const QVariant &value, int role)
void appendRow(QStandardItem *item)
QString fromLatin1(QByteArrayView str)
bool isEmpty() const const
QByteArray toLatin1() const const
std::string toStdString() const const
typedef ItemFlags
DateTime
Type type() const const
bool canConvert() const const
QDateTime toDateTime() const const
int toInt(bool *ok) const const
QString toString() const const
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.