reset Graphstart variable when <data clear>

This commit is contained in:
iceman1001 committed 2021-08-01 20:32:14 +02:00
1 parent 6e3eff356b
commit 9b90250434
5 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -766,7 +766,7 @@ void Plot::paintEvent(QPaintEvent *event) {
painter.drawText(20, infoRect.bottom() - 3, str);
}
Plot::Plot(QWidget *parent) : QWidget(parent), GraphStart(0), GraphPixelsPerPoint(1) {
Plot::Plot(QWidget *parent) : QWidget(parent), GraphPixelsPerPoint(1) {
//Need to set this, otherwise we don't receive keypress events
setFocusPolicy(Qt::StrongFocus);
resize(400, 200);