1/*
2 testplot_widget.h
3 SPDX-FileCopyrightText: 2006 Jason Harris <kstars@30doradus.org>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef TESTPLOT_WIDGET_H
9#define TESTPLOT_WIDGET_H
10
11#include <QMainWindow>
12
13class QComboBox;
14class QVBoxLayout;
15class KPlotWidget;
16class KPlotObject;
17
18class TestPlot : public QMainWindow
19{
20 Q_OBJECT
21
22public:
23 TestPlot(QWidget *parent = nullptr);
24 ~TestPlot() override
25 {
26 }
27
28public Q_SLOTS:
29 void slotSelectPlot(int index);
30
31private:
32 QVBoxLayout *vlay;
33 QComboBox *PlotSelector;
34 KPlotWidget *plot;
35 KPlotObject *po1, *po2;
36};
37
38#endif
39

source code of kplotting/examples/testplot_widget.h