KeySequence passed by reference

This commit is contained in:
Stefan Malewski 2020-11-05 22:29:28 -03:00 committed by Luis Ángel San Martín
parent fccf9ab0af
commit c73f28cca1
2 changed files with 3 additions and 1 deletions

View File

@ -629,7 +629,7 @@ void Viewer::keyPressEvent(QKeyEvent *event)
key == ShortcutsManager::getShortcutsManager().getShortcut(MOVE_UP_ACTION_Y) ||
key == ShortcutsManager::getShortcutsManager().getShortcut(MOVE_LEFT_ACTION_Y) ||
key == ShortcutsManager::getShortcutsManager().getShortcut(MOVE_RIGHT_ACTION_Y)) {
moveAction(key);
moveAction(&key);
emit backgroundChanges();
}

View File

@ -164,6 +164,8 @@ private:
void wheelEvent(QWheelEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;
void moveAction(QKeySequence *key);
//!ZigzagScroll
enum scrollDirection { UP,
DOWN,