Remove unused *Step* data members from Viewer

This commit is contained in:
Igor Kushnir 2021-03-06 18:13:13 +02:00
parent 88e0f5513a
commit 133b547e7a
2 changed files with 0 additions and 5 deletions

View File

@ -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();
} }

View File

@ -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;