ui: Added timer stopper to QtGraphicsView to stop movement if keyup event not registered

This commit is contained in:
Eberhard Graether
2016-04-19 23:13:41 +02:00
parent f19cdc3bb9
commit ce5c3e8626
2 changed files with 16 additions and 1 deletions
+2
View File
@@ -34,6 +34,7 @@ signals:
private slots:
void update();
void stopTimer();
private:
bool moves() const;
@@ -53,6 +54,7 @@ private:
bool m_shift;
std::shared_ptr<QTimer> m_timer;
std::shared_ptr<QTimer> m_timerStopper;
};
#endif // QT_GRAPHICS_VIEW_H