blob: 92aba69d6fd75295278a03336787883bc2604a8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef POINTCONFIGURATIONWIDGET_H
#define POINTCONFIGURATIONWIDGET_H
#include "contentwidget.h"
#include <QXYSeries>
QT_FORWARD_DECLARE_CLASS(QLineEdit)
QT_FORWARD_DECLARE_CLASS(QComboBox)
QT_FORWARD_DECLARE_CLASS(QCheckBox)
typedef QHash<QXYSeries::PointConfiguration, QVariant> PointConfigurations;
class PointConfigurationWidget : public ContentWidget
{
Q_OBJECT
public:
explicit PointConfigurationWidget(QWidget *parent = nullptr);
private:
QXYSeries *m_series = nullptr;
QMetaObject::Connection m_selectInitialPointConnection;
int m_selectedPointIndex = -1;
PointConfigurations m_selectedPointConfig;
QLineEdit *m_selectedPointIndexLineEdit = nullptr;
QComboBox *m_colorCombobox = nullptr;
QComboBox *m_sizeCombobox = nullptr;
QCheckBox *m_labelVisibilityCheckbox = nullptr;
QLineEdit *m_customLabelLineEdit = nullptr;
};
#endif
|