KGantt
9#ifndef KGANTTPROXYMODEL_H
10#define KGANTTPROXYMODEL_H
12#include "kganttforwardingproxymodel.h"
15 class KGANTT_EXPORT ProxyModel :
public ForwardingProxyModel {
17 Q_DISABLE_COPY(ProxyModel)
18 KGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC( ProxyModel )
20 explicit ProxyModel( QObject* parent =
nullptr );
21 ~ProxyModel()
override;
23 void setColumn(
int ganttrole,
int col );
24 void removeColumn(
int ganttrole );
25 void setRole(
int ganttrole,
int role );
26 void removeRole(
int ganttrole );
28 int column(
int ganttrole )
const;
29 int role(
int ganttrole )
const;
32 void setCalendarMode(
bool enable );
33 bool calendarMode()
const;
36 QModelIndex mapFromSource(
const QModelIndex& idx)
const override;
37 QModelIndex mapToSource(
const QModelIndex& proxyIdx )
const override;
39 int rowCount(
const QModelIndex& idx )
const override;
40 int columnCount(
const QModelIndex& idx )
const override;
42 QVariant data(
const QModelIndex& idx,
int role =
Qt::DisplayRole )
const override;
43 bool setData(
const QModelIndex& idx,
const QVariant& value,
int role=
Qt::EditRole )
override;
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:31 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.