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 QBAR3DSERIES_P_H
15#define QBAR3DSERIES_P_H
16
17#include "qabstract3dseries_p.h"
18#include "qbar3dseries.h"
19
20QT_BEGIN_NAMESPACE
21
22class QBar3DSeriesPrivate : public QAbstract3DSeriesPrivate
23{
24 Q_DECLARE_PUBLIC(QBar3DSeries)
25
26public:
27 static QBar3DSeriesPrivate *get(QBar3DSeries *item) { return item->d_func(); }
28 QBar3DSeriesPrivate();
29 ~QBar3DSeriesPrivate() override;
30
31 void setDataProxy(QAbstractDataProxy *proxy) override;
32 void connectGraphAndProxy(QQuickGraphsItem *newGraph) override;
33 void createItemLabel() override;
34
35 void setSelectedBar(QPoint position);
36
37 void setRowColors(const QList<QColor> &colors);
38
39 void setDataArray(const QBarDataArray &newDataArray);
40 void clearRow(qsizetype rowIndex);
41 void clearArray();
42
43 void setRowLabels(const QStringList &labels);
44 void setColumnLabels(const QStringList &labels);
45 void fixRowLabels(qsizetype startIndex,
46 qsizetype count,
47 const QStringList &newLabels,
48 bool isInsert);
49
50private:
51 QBarDataArray m_dataArray;
52 QStringList m_rowLabels;
53 QStringList m_columnLabels;
54 QPoint m_selectedBar;
55 QList<QColor> m_rowColors;
56
57 friend class QQuickGraphsBars;
58};
59
60QT_END_NAMESPACE
61
62#endif
63

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

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