-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontentwidget.h
More file actions
38 lines (28 loc) · 835 Bytes
/
contentwidget.h
File metadata and controls
38 lines (28 loc) · 835 Bytes
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
38
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef CONTENTWIDGET_H
#define CONTENTWIDGET_H
#include <QWidget>
#include <QtCharts>
//QT_FORWARD_DECLARE_CLASS(QChart)
//QT_FORWARD_DECLARE_CLASS(QChartView)
class ContentWidget : public QWidget
{
Q_OBJECT
public:
explicit ContentWidget(QWidget *parent = nullptr);
void load();
protected:
virtual bool doLoad();
void resizeEvent(QResizeEvent *) override;
void createDefaultChartView(QChart *chart);
QChartView *defaultChartView() const { return m_defaultChartView; }
void setDefaultChartView(QChartView *view);
QString m_loadError;
private:
QChartView *m_defaultChartView = nullptr;
bool m_loaded = false;
private slots:
void rangeChanged(qreal,qreal);
};
#endif