add button to reset zoom/pan of chart viewer

This commit is contained in:
Axel Kohlmeyer
2023-10-03 22:36:00 -04:00
parent a3c843f590
commit ed631ecd44
2 changed files with 42 additions and 1 deletions

View File

@ -43,6 +43,7 @@ public:
private slots:
void quit();
void reset_zoom();
void stop_run();
void saveAs();
@ -74,6 +75,8 @@ public:
explicit ChartViewer(const QString &title, int index, QWidget *parent = nullptr);
void add_data(int step, double data);
void reset_zoom();
int get_index() const { return index; };
int get_count() const { return series->count(); }
const char *get_title() const { return series->name().toLocal8Bit(); }