2023-03-02 13:45:23 +00:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
2023-05-09 07:38:04 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2023-03-02 13:45:23 +00:00
|
|
|
|
|
|
|
|
#ifndef BARGRAPH_H
|
|
|
|
|
#define BARGRAPH_H
|
|
|
|
|
|
|
|
|
|
#include <QtCore/qobject.h>
|
2024-05-28 06:32:52 +00:00
|
|
|
#include <QtGraphsWidgets/q3dbarswidgetitem.h>
|
2023-04-04 10:37:19 +00:00
|
|
|
#include "graphmodifier.h"
|
2023-03-02 13:45:23 +00:00
|
|
|
|
|
|
|
|
class BarGraph : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2024-05-28 06:32:52 +00:00
|
|
|
BarGraph(QWidget *parent = nullptr);
|
2023-03-02 13:45:23 +00:00
|
|
|
|
|
|
|
|
void initialize();
|
2024-08-02 10:07:43 +00:00
|
|
|
QWidget *barsWidget() { return m_container; }
|
2023-03-02 13:45:23 +00:00
|
|
|
|
|
|
|
|
private:
|
2023-04-04 10:37:19 +00:00
|
|
|
GraphModifier *m_modifier = nullptr;
|
2024-08-02 10:07:43 +00:00
|
|
|
Q3DBarsWidgetItem *m_barGraph = nullptr;
|
|
|
|
|
QQuickWidget *m_quickWidget = nullptr;
|
|
|
|
|
QWidget *m_container = nullptr;
|
2023-03-02 13:45:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|