ui: Added timer stopper to QtGraphicsView to stop movement if keyup event not registered
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user