Fixed bug with order of initialization

This commit is contained in:
2019-09-07 20:05:35 +02:00
parent c46480ed6a
commit f612e4e14f

View File

@@ -40,9 +40,6 @@ protected:
void timerEvent(QTimerEvent *event) override; void timerEvent(QTimerEvent *event) override;
private: private:
int m_redrawTimerId;
QPointF m_lastPoint;
float m_factor{2.f}; float m_factor{2.f};
int m_fps{15}, m_afterglow{175}; int m_fps{15}, m_afterglow{175};
float m_lightspeed{35.f}; float m_lightspeed{35.f};
@@ -52,5 +49,7 @@ private:
int m_frameCounter{0}, m_callbacksCounter{0}; int m_frameCounter{0}, m_callbacksCounter{0};
QElapsedTimer m_statsTimer; QElapsedTimer m_statsTimer;
int m_redrawTimerId;
QPointF m_lastPoint;
QPixmap m_pixmap; QPixmap m_pixmap;
}; };