mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Remove unused *Step* data members from Viewer
This commit is contained in:
parent
88e0f5513a
commit
133b547e7a
@ -34,7 +34,6 @@ Viewer::Viewer(QWidget *parent)
|
|||||||
wheelStop(false),
|
wheelStop(false),
|
||||||
direction(1),
|
direction(1),
|
||||||
drag(false),
|
drag(false),
|
||||||
numScrollSteps(22),
|
|
||||||
shouldOpenNext(false),
|
shouldOpenNext(false),
|
||||||
shouldOpenPrevious(false),
|
shouldOpenPrevious(false),
|
||||||
magnifyingGlassShowed(false),
|
magnifyingGlassShowed(false),
|
||||||
@ -597,13 +596,11 @@ void Viewer::keyPressEvent(QKeyEvent *event)
|
|||||||
else*/
|
else*/
|
||||||
|
|
||||||
if (key == ShortcutsManager::getShortcutsManager().getShortcut(AUTO_SCROLL_FORWARD_ACTION_Y)) {
|
if (key == ShortcutsManager::getShortcutsManager().getShortcut(AUTO_SCROLL_FORWARD_ACTION_Y)) {
|
||||||
posByStep = height() / numScrollSteps;
|
|
||||||
nextPos = verticalScrollBar()->sliderPosition() + static_cast<int>((height() * 0.80));
|
nextPos = verticalScrollBar()->sliderPosition() + static_cast<int>((height() * 0.80));
|
||||||
scrollDown();
|
scrollDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (key == ShortcutsManager::getShortcutsManager().getShortcut(AUTO_SCROLL_BACKWARD_ACTION_Y)) {
|
else if (key == ShortcutsManager::getShortcutsManager().getShortcut(AUTO_SCROLL_BACKWARD_ACTION_Y)) {
|
||||||
posByStep = height() / numScrollSteps;
|
|
||||||
nextPos = verticalScrollBar()->sliderPosition() - static_cast<int>((height() * 0.80));
|
nextPos = verticalScrollBar()->sliderPosition() - static_cast<int>((height() * 0.80));
|
||||||
scrollUp();
|
scrollUp();
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,6 @@ private:
|
|||||||
QPropertyAnimation *verticalScroller;
|
QPropertyAnimation *verticalScroller;
|
||||||
QPropertyAnimation *horizontalScroller;
|
QPropertyAnimation *horizontalScroller;
|
||||||
QParallelAnimationGroup *groupScroller;
|
QParallelAnimationGroup *groupScroller;
|
||||||
int posByStep;
|
|
||||||
int nextPos;
|
int nextPos;
|
||||||
GoToFlowWidget *goToFlow;
|
GoToFlowWidget *goToFlow;
|
||||||
QPropertyAnimation *showGoToFlowAnimation;
|
QPropertyAnimation *showGoToFlowAnimation;
|
||||||
@ -135,7 +134,6 @@ private:
|
|||||||
QTimer *hideCursorTimer;
|
QTimer *hideCursorTimer;
|
||||||
int direction;
|
int direction;
|
||||||
bool drag;
|
bool drag;
|
||||||
int numScrollSteps;
|
|
||||||
|
|
||||||
//! Widgets
|
//! Widgets
|
||||||
QLabel *content;
|
QLabel *content;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user