// Copyright (C) 2023 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #ifndef QABSTRACTSERIES_P_H #define QABSTRACTSERIES_P_H // // W A R N I N G // ------------- // // This file is not part of the QtGraphs API. It exists purely as an // implementation detail. This header file may change from version to // version without notice, or even be removed. // // We mean it. #include #include #include #include QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcSeries2D) Q_DECLARE_LOGGING_CATEGORY(lcProperties2D) class QAbstractAxis; class QGraphsView; class QAbstractSeriesPrivate : public QObjectPrivate { Q_DECLARE_PUBLIC(QAbstractSeries) public: explicit QAbstractSeriesPrivate(); ~QAbstractSeriesPrivate() override; void setLegendData(const QList &legendData); void clearLegendData(); static void appendSeriesChildren(QQmlListProperty *list, QObject *element); protected: QGraphsView *m_graph = nullptr; private: QString m_name; bool m_visible = true; bool m_loaded = false; bool m_selectable = false; bool m_hoverable = false; bool m_hovered = false; qreal m_opacity = 1.0; qreal m_valuesMultiplier = 1.0; QList m_legendData; QAbstractAxis *m_axisX = nullptr; QAbstractAxis *m_axisY = nullptr; }; QT_END_NAMESPACE #endif