mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
KeySequence passed by reference
This commit is contained in:
parent
fccf9ab0af
commit
c73f28cca1
@ -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();
|
||||
}
|
||||
|
||||
|
@ -164,6 +164,8 @@ private:
|
||||
void wheelEvent(QWheelEvent *event) override;
|
||||
void mouseMoveEvent(QMouseEvent *event) override;
|
||||
|
||||
void moveAction(QKeySequence *key);
|
||||
|
||||
//!ZigzagScroll
|
||||
enum scrollDirection { UP,
|
||||
DOWN,
|
||||
|
Loading…
x
Reference in New Issue
Block a user