summaryrefslogtreecommitdiffstats
path: root/examples/charts/chartsgallery/polarchartview.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/charts/chartsgallery/polarchartview.h')
-rw-r--r--examples/charts/chartsgallery/polarchartview.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/charts/chartsgallery/polarchartview.h b/examples/charts/chartsgallery/polarchartview.h
new file mode 100644
index 00000000..ee4e8fb9
--- /dev/null
+++ b/examples/charts/chartsgallery/polarchartview.h
@@ -0,0 +1,21 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#ifndef POLARCHARTVIEW_H
+#define POLARCHARTVIEW_H
+
+#include <QChartView>
+
+class PolarChartView : public QChartView
+{
+public:
+ PolarChartView(QWidget *parent = nullptr);
+
+protected:
+ void keyPressEvent(QKeyEvent *event);
+
+private:
+ void switchChartType();
+};
+
+#endif