KD Chart API Documentation  3.1
KDChartAbstractProxyModel.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 KDCHARTABSTRACTPROXYMODEL_H
12 #define KDCHARTABSTRACTPROXYMODEL_H
13 
14 #include <QAbstractProxyModel>
15 
16 #include "KDChartGlobal.h"
17 
18 namespace KDChart {
23 class KDCHART_EXPORT AbstractProxyModel : public QAbstractProxyModel
24 {
25  Q_OBJECT
26 public:
27  explicit AbstractProxyModel(QObject *parent = nullptr);
28 
30  QModelIndex mapFromSource(const QModelIndex &sourceIndex) const override;
32  QModelIndex mapToSource(const QModelIndex &proxyIndex) const override;
33 
35  QModelIndex index(int row, int col, const QModelIndex &index) const override;
37  QModelIndex parent(const QModelIndex &index) const override;
38 };
39 }
40 
41 #endif /* KDCHARTABSTRACTPROXYMODEL_H */
Contains KDChart macros.
Base class for all proxy models used inside KD Chart.

© 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