Source code
Revision control
Copy as Markdown
// Copyright (C) 2016 The Qt Company Ltd.
// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef QHBOXPLOTMODELMAPPER_H
#define QHBOXPLOTMODELMAPPER_H
#include <QtCharts/QBoxPlotModelMapper>
Q_MOC_INCLUDE(<QtCharts/qboxplotseries.h>)
Q_MOC_INCLUDE(<QtCore/qabstractitemmodel.h>)
QT_BEGIN_NAMESPACE
/* Comment line for syncqt to generate the fwd-include correctly, due to QTBUG-22432 */
class Q_CHARTS_EXPORT QHBoxPlotModelMapper : public QBoxPlotModelMapper
{
Q_OBJECT
Q_PROPERTY(QBoxPlotSeries *series READ series WRITE setSeries NOTIFY seriesReplaced)
Q_PROPERTY(QAbstractItemModel *model READ model WRITE setModel NOTIFY modelReplaced)
Q_PROPERTY(int firstBoxSetRow READ firstBoxSetRow WRITE setFirstBoxSetRow NOTIFY firstBoxSetRowChanged)
Q_PROPERTY(int lastBoxSetRow READ lastBoxSetRow WRITE setLastBoxSetRow NOTIFY lastBoxSetRowChanged)
Q_PROPERTY(int firstColumn READ firstColumn WRITE setFirstColumn NOTIFY firstColumnChanged)
Q_PROPERTY(int columnCount READ columnCount WRITE setColumnCount NOTIFY columnCountChanged)
public:
explicit QHBoxPlotModelMapper(QObject *parent = nullptr);
QAbstractItemModel *model() const;
void setModel(QAbstractItemModel *model);
QBoxPlotSeries *series() const;
void setSeries(QBoxPlotSeries *series);
int firstBoxSetRow() const;
void setFirstBoxSetRow(int firstBoxSetRow);
int lastBoxSetRow() const;
void setLastBoxSetRow(int lastBoxSetRow);
int firstColumn() const;
void setFirstColumn(int firstColumn);
int columnCount() const;
void setColumnCount(int rowCount);
Q_SIGNALS:
void seriesReplaced();
void modelReplaced();
void firstBoxSetRowChanged();
void lastBoxSetRowChanged();
void firstColumnChanged();
void columnCountChanged();
};
QT_END_NAMESPACE
#endif // QHBOXPLOTMODELMAPPER_H