KGantt::SummaryHandlingProxyModel
#include <kganttsummaryhandlingproxymodel.h>
Public Member Functions | |
SummaryHandlingProxyModel (QObject *parent=nullptr) | |
QVariant | data (const QModelIndex &proxyIndex, int role=Qt::DisplayRole) const override |
Qt::ItemFlags | flags (const QModelIndex &idx) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
void | setSourceModel (QAbstractItemModel *model) override |
Protected Member Functions | |
void | sourceColumnsAboutToBeInserted (const QModelIndex &idx, int start, int end) override |
void | sourceColumnsAboutToBeRemoved (const QModelIndex &idx, int start, int end) override |
void | sourceDataChanged (const QModelIndex &from, const QModelIndex &to) override |
void | sourceLayoutChanged () override |
void | sourceModelReset () override |
void | sourceRowsAboutToBeInserted (const QModelIndex &idx, int start, int end) override |
void | sourceRowsAboutToBeRemoved (const QModelIndex &, int start, int end) override |
Detailed Description
Proxy model that supports summary gantt items.
This proxy model provides the functionality of summary items. A summary item is an item with type KGantt::TypeSummary and zero or more children in the model that it summarizes. GraphicsView itself does not dictate any policy for summary items, instead the logic for making the summary items start and end points span it's children is provided by this proxy.
The start and end times of a summary is the min/max of the start/end times of it's children.
- See also
- GraphicsView::setModel
Constructor & Destructor Documentation
◆ SummaryHandlingProxyModel()
|
explicit |
Constructor. Creates a new SummaryHandlingProxyModel with parent parent
Definition at line 92 of file kganttsummaryhandlingproxymodel.cpp.
◆ ~SummaryHandlingProxyModel()
|
override |
Definition at line 99 of file kganttsummaryhandlingproxymodel.cpp.
Member Function Documentation
◆ data()
|
overridevirtual |
- See also
- QAbstractItemModel::data
Reimplemented from QAbstractProxyModel.
Definition at line 185 of file kganttsummaryhandlingproxymodel.cpp.
◆ flags()
|
overridevirtual |
- See also
- QAbstractItemModel::flags
Reimplemented from QAbstractProxyModel.
Definition at line 173 of file kganttsummaryhandlingproxymodel.cpp.
◆ setData()
|
overridevirtual |
- See also
- QAbstractItemModel::setData
Reimplemented from QAbstractProxyModel.
Definition at line 209 of file kganttsummaryhandlingproxymodel.cpp.
◆ setSourceModel()
|
overridevirtual |
Sets the model to be used as the source model for this proxy. The proxy does not take ownership of the model.
Reimplemented from QAbstractProxyModel.
Definition at line 109 of file kganttsummaryhandlingproxymodel.cpp.
◆ sourceColumnsAboutToBeInserted()
|
overrideprotected |
Definition at line 144 of file kganttsummaryhandlingproxymodel.cpp.
◆ sourceColumnsAboutToBeRemoved()
|
overrideprotected |
Definition at line 152 of file kganttsummaryhandlingproxymodel.cpp.
◆ sourceDataChanged()
|
overrideprotected |
Definition at line 127 of file kganttsummaryhandlingproxymodel.cpp.
◆ sourceLayoutChanged()
|
overrideprotected |
Definition at line 121 of file kganttsummaryhandlingproxymodel.cpp.
◆ sourceModelReset()
|
overrideprotected |
Definition at line 115 of file kganttsummaryhandlingproxymodel.cpp.
◆ sourceRowsAboutToBeInserted()
|
overrideprotected |
Definition at line 160 of file kganttsummaryhandlingproxymodel.cpp.
◆ sourceRowsAboutToBeRemoved()
|
overrideprotected |
Definition at line 166 of file kganttsummaryhandlingproxymodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.