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 BARITEMMODELHANDLER_P_H
15#define BARITEMMODELHANDLER_P_H
16
17#include "abstractitemmodelhandler_p.h"
18#include "qitemmodelbardataproxy_p.h"
19
20QT_BEGIN_NAMESPACE
21
22class BarItemModelHandler : public AbstractItemModelHandler
23{
24 Q_OBJECT
25public:
26 BarItemModelHandler(QItemModelBarDataProxy *proxy, QObject *parent = 0);
27 ~BarItemModelHandler() override;
28
29public Q_SLOTS:
30 void handleDataChanged(const QModelIndex &topLeft,
31 const QModelIndex &bottomRight,
32 const QList<int> &roles = QList<int>()) override;
33
34protected:
35 void resolveModel() override;
36
37 QItemModelBarDataProxy *m_proxy; // Not owned
38 QBarDataArray m_proxyArray;
39 qsizetype m_columnCount;
40 int m_valueRole;
41 int m_rotationRole;
42 QRegularExpression m_valuePattern;
43 QRegularExpression m_rotationPattern;
44 QString m_valueReplace;
45 QString m_rotationReplace;
46 bool m_haveValuePattern;
47 bool m_haveRotationPattern;
48};
49
50QT_END_NAMESPACE
51
52#endif
53

Provided by KDAB

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

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