1 | // Copyright (C) 2016 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 QtDataVisualization 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 QITEMMODELBARDATAPROXY_P_H |
15 | #define QITEMMODELBARDATAPROXY_P_H |
16 | |
17 | #include "qitemmodelbardataproxy.h" |
18 | #include "qbardataproxy_p.h" |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class BarItemModelHandler; |
23 | |
24 | class QItemModelBarDataProxyPrivate : public QBarDataProxyPrivate |
25 | { |
26 | Q_OBJECT |
27 | public: |
28 | QItemModelBarDataProxyPrivate(QItemModelBarDataProxy *q); |
29 | virtual ~QItemModelBarDataProxyPrivate(); |
30 | |
31 | void connectItemModelHandler(); |
32 | |
33 | private: |
34 | QItemModelBarDataProxy *qptr(); |
35 | |
36 | BarItemModelHandler *m_itemModelHandler; |
37 | |
38 | QString m_rowRole; |
39 | QString m_columnRole; |
40 | QString m_valueRole; |
41 | QString m_rotationRole; |
42 | |
43 | // For row/column items, sort items into these categories. Other categories are ignored. |
44 | QStringList m_rowCategories; |
45 | QStringList m_columnCategories; |
46 | |
47 | bool m_useModelCategories; |
48 | bool m_autoRowCategories; |
49 | bool m_autoColumnCategories; |
50 | |
51 | QRegularExpression m_rowRolePattern; |
52 | QRegularExpression m_columnRolePattern; |
53 | QRegularExpression m_valueRolePattern; |
54 | QRegularExpression m_rotationRolePattern; |
55 | |
56 | QString m_rowRoleReplace; |
57 | QString m_columnRoleReplace; |
58 | QString m_valueRoleReplace; |
59 | QString m_rotationRoleReplace; |
60 | |
61 | QItemModelBarDataProxy::MultiMatchBehavior m_multiMatchBehavior; |
62 | |
63 | friend class BarItemModelHandler; |
64 | friend class QItemModelBarDataProxy; |
65 | }; |
66 | |
67 | QT_END_NAMESPACE |
68 | |
69 | #endif |
70 |