diff options
Diffstat (limited to 'examples/charts/chartsgallery/nesteddonutswidget.h')
-rw-r--r-- | examples/charts/chartsgallery/nesteddonutswidget.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/charts/chartsgallery/nesteddonutswidget.h b/examples/charts/chartsgallery/nesteddonutswidget.h new file mode 100644 index 00000000..7dfc95c1 --- /dev/null +++ b/examples/charts/chartsgallery/nesteddonutswidget.h @@ -0,0 +1,27 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#ifndef NESTEDDONUTSWIDGET_H +#define NESTEDDONUTSWIDGET_H + +#include "contentwidget.h" + +QT_FORWARD_DECLARE_CLASS(QTimer) +QT_FORWARD_DECLARE_CLASS(QPieSeries) + +class NestedDonutsWidget : public ContentWidget +{ + Q_OBJECT +public: + NestedDonutsWidget(QWidget *parent = nullptr); + +public slots: + void updateRotation(); + void explodeSlice(bool exploded); + +private: + QList<QPieSeries *> m_donuts; + QTimer *m_updateTimer = nullptr; +}; + +#endif |