mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Extract mouse handling events to it's own class
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
#include <QSettings>
|
||||
|
||||
#include "scroll_management.h"
|
||||
#include "mouse_handler.h"
|
||||
|
||||
class ComicDB;
|
||||
class Comic;
|
||||
@ -185,6 +186,9 @@ private:
|
||||
int animationDuration() const;
|
||||
void animateScroll(QPropertyAnimation &scroller, const QScrollBar &scrollBar, int delta);
|
||||
|
||||
//! Mouse handler
|
||||
std::unique_ptr<YACReader::MouseHandler> mouseHandler;
|
||||
|
||||
public:
|
||||
Viewer(QWidget *parent = nullptr);
|
||||
~Viewer();
|
||||
@ -213,6 +217,8 @@ signals:
|
||||
void magnifyingGlassZoomIn();
|
||||
void magnifyingGlassZoomOut();
|
||||
void resetMagnifyingGlass();
|
||||
|
||||
friend class YACReader::MouseHandler;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user