mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Add options for disabling scroll animation
This commit is contained in:
@ -162,7 +162,7 @@ private:
|
||||
bool restoreMagnifyingGlass;
|
||||
void setMagnifyingGlassShown(bool shown);
|
||||
|
||||
//! Manejadores de evento:
|
||||
//! Event handlers:
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
void wheelEvent(QWheelEvent *event) override;
|
||||
void mouseMoveEvent(QMouseEvent *event) override;
|
||||
@ -179,6 +179,10 @@ private:
|
||||
void scrollZigzag(scrollDirection d1, scrollDirection d2, bool forward);
|
||||
void scrollTo(int x, int y);
|
||||
|
||||
// Zero when animations are disabled
|
||||
int animationDuration() const;
|
||||
void animateScroll(QPropertyAnimation &scroller, const QScrollBar &scrollBar, int delta);
|
||||
|
||||
public:
|
||||
Viewer(QWidget *parent = nullptr);
|
||||
~Viewer();
|
||||
|
Reference in New Issue
Block a user