blob: 66c54f9b507d8113943fcf037d01211bbc36bd0c (
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
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef PIEDRILLDOWNCHART_H
#define PIEDRILLDOWNCHART_H
#include <QChart>
QT_FORWARD_DECLARE_CLASS(QAbstractSeries);
QT_FORWARD_DECLARE_CLASS(QPieSlice);
class PieDrilldownChart : public QChart
{
Q_OBJECT
public:
explicit PieDrilldownChart(QGraphicsItem *parent = nullptr, Qt::WindowFlags wFlags = {});
void changeSeries(QAbstractSeries *series);
public slots:
void handleSliceClicked(QPieSlice *slice);
private:
QAbstractSeries *m_currentSeries = nullptr;
};
#endif
|