KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
kdganttproxymodel.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** This file is part of the KD Chart library.
4**
5** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6**
7** SPDX-License-Identifier: MIT
8**
9****************************************************************************/
10
11#ifndef KDGANTTPROXYMODEL_H
12#define KDGANTTPROXYMODEL_H
13
15
16namespace KDGantt {
17class KDGANTT_EXPORT ProxyModel : public ForwardingProxyModel
18{
19 Q_OBJECT
20 Q_DISABLE_COPY(ProxyModel)
22public:
23 explicit ProxyModel(QObject *parent = nullptr);
24 ~ProxyModel() override;
25
26 void setColumn(int ganttrole, int col);
27 void setRole(int ganttrole, int role);
28
29 int column(int ganttrole) const;
30 int role(int ganttrole) const;
31
32#if 0
33 void setCalendarMode( bool enable );
34 bool calendarMode() const;
35#endif
36
37 /*reimp*/ QModelIndex mapFromSource(const QModelIndex &idx) const override;
38 /*reimp*/ QModelIndex mapToSource(const QModelIndex &proxyIdx) const override;
39
40 /*reimp*/ int rowCount(const QModelIndex &idx) const override;
41 /*reimp*/ int columnCount(const QModelIndex &idx) const override;
42
43 /*reimp*/ QVariant data(const QModelIndex &idx, int role = Qt::DisplayRole) const override;
44 /*reimp*/ bool setData(const QModelIndex &idx, const QVariant &value, int role = Qt::EditRole) override;
45};
46}
47
48#endif /* KDGANTTPROXYMODEL_H */
#define KDGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC(X)
DisplayRole

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated on Thu Apr 11 2024 00:04:50 for KD Chart API Documentation by doxygen 1.9.8