1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the QtGraphs API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13
14#ifndef QBARDATAPROXY_P_H
15#define QBARDATAPROXY_P_H
16
17#include "qabstractdataproxy_p.h"
18#include "qbardataproxy.h"
19
20QT_BEGIN_NAMESPACE
21
22class QBarDataProxyPrivate : public QAbstractDataProxyPrivate
23{
24 Q_DECLARE_PUBLIC(QBarDataProxy)
25
26public:
27 QBarDataProxyPrivate();
28 ~QBarDataProxyPrivate() override;
29
30 void resetArray(QBarDataArray &&newArray, QStringList &&rowLabels, QStringList &&columnLabels);
31 void setRow(qsizetype rowIndex, QBarDataRow &&row, QString &&label);
32 void setRows(qsizetype rowIndex, QBarDataArray &&rows, QStringList &&labels);
33 void setItem(qsizetype rowIndex, qsizetype columnIndex, QBarDataItem &&item);
34 qsizetype addRow(QBarDataRow &&row, QString &&label);
35 qsizetype addRows(QBarDataArray &&rows, QStringList &&labels);
36 void insertRow(qsizetype rowIndex, QBarDataRow &&row, QString &&label);
37 void insertRows(qsizetype rowIndex, QBarDataArray &&rows, QStringList &&labels);
38 void removeRows(qsizetype rowIndex, qsizetype removeCount, bool removeLabels);
39
40 QPair<float, float> limitValues(qsizetype startRow,
41 qsizetype startColumn,
42 qsizetype rowCount,
43 qsizetype columnCount) const;
44
45 void setSeries(QAbstract3DSeries *series) override;
46};
47
48QT_END_NAMESPACE
49
50#endif
51

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of qtgraphs/src/graphs3d/data/qbardataproxy_p.h