summaryrefslogtreecommitdiffstats
path: root/examples/charts/zoomlinechart/chart.h
blob: 1d5de0c7a891ec7b2cbdb845e2f4c919d1d2d143 (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
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef CHART_H
#define CHART_H

#include <QChart>

QT_FORWARD_DECLARE_CLASS(QGestureEvent)

//![1]
class Chart : public QChart
//![1]
{
public:
    explicit Chart(QGraphicsItem *parent = nullptr, Qt::WindowFlags wFlags = {});

protected:
    bool sceneEvent(QEvent *event);

private:
    bool gestureEvent(QGestureEvent *event);
};

#endif