From f612e4e14fcc527e170f7470ee17196726f0a7c3 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Sat, 7 Sep 2019 20:05:35 +0200 Subject: [PATCH] Fixed bug with order of initialization --- osciwidget.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/osciwidget.h b/osciwidget.h index c8ec2f7..f757d4a 100644 --- a/osciwidget.h +++ b/osciwidget.h @@ -40,9 +40,6 @@ protected: void timerEvent(QTimerEvent *event) override; private: - int m_redrawTimerId; - QPointF m_lastPoint; - float m_factor{2.f}; int m_fps{15}, m_afterglow{175}; float m_lightspeed{35.f}; @@ -52,5 +49,7 @@ private: int m_frameCounter{0}, m_callbacksCounter{0}; QElapsedTimer m_statsTimer; + int m_redrawTimerId; + QPointF m_lastPoint; QPixmap m_pixmap; };