KGantt
9#ifndef KGANTTFORWARDINGPROXYMODEL_H
10#define KGANTTFORWARDINGPROXYMODEL_H
12#include <QAbstractProxyModel>
17 class KGANTT_EXPORT ForwardingProxyModel :
public QAbstractProxyModel {
19 Q_DISABLE_COPY(ForwardingProxyModel)
24 explicit ForwardingProxyModel( QObject* parent =
nullptr );
25 ~ForwardingProxyModel()
override;
28 QModelIndex mapFromSource (
const QModelIndex & sourceIndex )
const override;
31 QModelIndex mapToSource (
const QModelIndex & proxyIndex )
const override;
37 void setSourceModel( QAbstractItemModel* model )
override;
40 QModelIndex index(
int row,
int column,
const QModelIndex& parent = QModelIndex() )
const override;
43 QModelIndex parent(
const QModelIndex& idx )
const override;
46 int rowCount(
const QModelIndex& idx = QModelIndex() )
const override;
49 int columnCount(
const QModelIndex& idx = QModelIndex() )
const override;
52 bool setData(
const QModelIndex& index,
const QVariant& value,
int role =
Qt::EditRole )
override;
54 QMimeData *mimeData(
const QModelIndexList &indexes)
const override;
55 bool dropMimeData(
const QMimeData *data,
Qt::DropAction action,
int row,
int column,
const QModelIndex &parent)
override;
56 QStringList mimeTypes()
const override;
63 virtual void sourceModelAboutToBeReset();
68 virtual void sourceModelReset();
73 virtual void sourceLayoutAboutToBeChanged();
78 virtual void sourceLayoutChanged();
83 virtual void sourceDataChanged(
const QModelIndex& from,
const QModelIndex& to );
88 virtual void sourceColumnsAboutToBeInserted(
const QModelIndex& idx,
int start,
int end );
93 virtual void sourceColumnsInserted(
const QModelIndex& idx,
int start,
int end );
98 virtual void sourceColumnsAboutToBeRemoved(
const QModelIndex& idx,
int start,
int end );
103 virtual void sourceColumnsRemoved(
const QModelIndex& idx,
int start,
int end );
109 virtual void sourceRowsAboutToBeInserted(
const QModelIndex& idx,
int start,
int end );
114 virtual void sourceRowsInserted(
const QModelIndex& idx,
int start,
int end );
119 virtual void sourceRowsAboutToBeRemoved(
const QModelIndex&,
int start,
int end );
124 virtual void sourceRowsRemoved(
const QModelIndex&,
int start,
int end );
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:04:29 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.