KD Chart API Documentation  3.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
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 
16 namespace KDGantt {
17 class KDGANTT_EXPORT ProxyModel : public ForwardingProxyModel
18 {
19  Q_OBJECT
20  Q_DISABLE_COPY(ProxyModel)
22 public:
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)

© 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 by doxygen 1.9.1