Warning: That file was not part of the compilation database. It may have many parsing errors.
| 1 | /**************************************************************************** |
|---|---|
| 2 | ** |
| 3 | ** Copyright (C) 2016 The Qt Company Ltd. |
| 4 | ** Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB). |
| 5 | ** Contact: https://www.qt.io/licensing/ |
| 6 | ** |
| 7 | ** This file is part of the Qt Charts module of the Qt Toolkit. |
| 8 | ** |
| 9 | ** $QT_BEGIN_LICENSE:GPL$ |
| 10 | ** Commercial License Usage |
| 11 | ** Licensees holding valid commercial Qt licenses may use this file in |
| 12 | ** accordance with the commercial license agreement provided with the |
| 13 | ** Software or, alternatively, in accordance with the terms contained in |
| 14 | ** a written agreement between you and The Qt Company. For licensing terms |
| 15 | ** and conditions see https://www.qt.io/terms-conditions. For further |
| 16 | ** information use the contact form at https://www.qt.io/contact-us. |
| 17 | ** |
| 18 | ** GNU General Public License Usage |
| 19 | ** Alternatively, this file may be used under the terms of the GNU |
| 20 | ** General Public License version 3 or (at your option) any later version |
| 21 | ** approved by the KDE Free Qt Foundation. The licenses are as published by |
| 22 | ** the Free Software Foundation and appearing in the file LICENSE.GPL3 |
| 23 | ** included in the packaging of this file. Please review the following |
| 24 | ** information to ensure the GNU General Public License requirements will |
| 25 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
| 26 | ** |
| 27 | ** $QT_END_LICENSE$ |
| 28 | ** |
| 29 | ****************************************************************************/ |
| 30 | |
| 31 | #ifndef QHBOXPLOTMODELMAPPER_H |
| 32 | #define QHBOXPLOTMODELMAPPER_H |
| 33 | |
| 34 | #include <QtCharts/QBoxPlotModelMapper> |
| 35 | |
| 36 | QT_CHARTS_BEGIN_NAMESPACE |
| 37 | /* Comment line for syncqt to generate the fwd-include correctly, due to QTBUG-22432 */ |
| 38 | class Q_CHARTS_EXPORT QHBoxPlotModelMapper : public QBoxPlotModelMapper |
| 39 | { |
| 40 | Q_OBJECT |
| 41 | Q_PROPERTY(QtCharts::QBoxPlotSeries *series READ series WRITE setSeries NOTIFY seriesReplaced) |
| 42 | Q_PROPERTY(QAbstractItemModel *model READ model WRITE setModel NOTIFY modelReplaced) |
| 43 | Q_PROPERTY(int firstBoxSetRow READ firstBoxSetRow WRITE setFirstBoxSetRow NOTIFY firstBoxSetRowChanged) |
| 44 | Q_PROPERTY(int lastBoxSetRow READ lastBoxSetRow WRITE setLastBoxSetRow NOTIFY lastBoxSetRowChanged) |
| 45 | Q_PROPERTY(int firstColumn READ firstColumn WRITE setFirstColumn NOTIFY firstColumnChanged) |
| 46 | Q_PROPERTY(int columnCount READ columnCount WRITE setColumnCount NOTIFY columnCountChanged) |
| 47 | |
| 48 | public: |
| 49 | explicit QHBoxPlotModelMapper(QObject *parent = nullptr); |
| 50 | |
| 51 | QAbstractItemModel *model() const; |
| 52 | void setModel(QAbstractItemModel *model); |
| 53 | |
| 54 | QBoxPlotSeries *series() const; |
| 55 | void setSeries(QBoxPlotSeries *series); |
| 56 | |
| 57 | int firstBoxSetRow() const; |
| 58 | void setFirstBoxSetRow(int firstBoxSetRow); |
| 59 | |
| 60 | int lastBoxSetRow() const; |
| 61 | void setLastBoxSetRow(int lastBoxSetRow); |
| 62 | |
| 63 | int firstColumn() const; |
| 64 | void setFirstColumn(int firstColumn); |
| 65 | |
| 66 | int columnCount() const; |
| 67 | void setColumnCount(int rowCount); |
| 68 | |
| 69 | Q_SIGNALS: |
| 70 | void seriesReplaced(); |
| 71 | void modelReplaced(); |
| 72 | void firstBoxSetRowChanged(); |
| 73 | void lastBoxSetRowChanged(); |
| 74 | void firstColumnChanged(); |
| 75 | void columnCountChanged(); |
| 76 | }; |
| 77 | |
| 78 | QT_CHARTS_END_NAMESPACE |
| 79 | |
| 80 | #endif // QHBOXPLOTMODELMAPPER_H |
| 81 |
Warning: That file was not part of the compilation database. It may have many parsing errors.
