mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -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),
|
||||
direction(1),
|
||||
drag(false),
|
||||
numScrollSteps(22),
|
||||
shouldOpenNext(false),
|
||||
shouldOpenPrevious(false),
|
||||
magnifyingGlassShowed(false),
|
||||
@ -597,13 +596,11 @@ void Viewer::keyPressEvent(QKeyEvent *event)
|
||||
else*/
|
||||
|
||||
if (key == ShortcutsManager::getShortcutsManager().getShortcut(AUTO_SCROLL_FORWARD_ACTION_Y)) {
|
||||
posByStep = height() / numScrollSteps;
|
||||
nextPos = verticalScrollBar()->sliderPosition() + static_cast<int>((height() * 0.80));
|
||||
scrollDown();
|
||||
}
|
||||
|
||||
else if (key == ShortcutsManager::getShortcutsManager().getShortcut(AUTO_SCROLL_BACKWARD_ACTION_Y)) {
|
||||
posByStep = height() / numScrollSteps;
|
||||
nextPos = verticalScrollBar()->sliderPosition() - static_cast<int>((height() * 0.80));
|
||||
scrollUp();
|
||||
}
|
||||
|
@ -119,7 +119,6 @@ private:
|
||||
QPropertyAnimation *verticalScroller;
|
||||
QPropertyAnimation *horizontalScroller;
|
||||
QParallelAnimationGroup *groupScroller;
|
||||
int posByStep;
|
||||
int nextPos;
|
||||
GoToFlowWidget *goToFlow;
|
||||
QPropertyAnimation *showGoToFlowAnimation;
|
||||
@ -135,7 +134,6 @@ private:
|
||||
QTimer *hideCursorTimer;
|
||||
int direction;
|
||||
bool drag;
|
||||
int numScrollSteps;
|
||||
|
||||
//! Widgets
|
||||
QLabel *content;
|
||||
|
Loading…
Reference in New Issue
Block a user