remove redundant mapsceneeventfilter file

This commit is contained in:
garak
2023-02-14 12:32:37 -05:00
parent 2ea0590f6e
commit ff086a6fe6
7 changed files with 33 additions and 51 deletions

View File

@@ -3,6 +3,7 @@
/// Prevent wheel scroll
class WheelFilter : public QObject {
Q_OBJECT
public:
@@ -10,3 +11,18 @@ public:
virtual ~WheelFilter() {}
bool eventFilter(QObject *obj, QEvent *event) override;
};
/// Ctrl+Wheel = zoom
class MapSceneEventFilter : public QObject {
Q_OBJECT
protected:
bool eventFilter(QObject *obj, QEvent *event) override;
public:
explicit MapSceneEventFilter(QObject *parent = nullptr) : QObject(parent) {}
signals:
void wheelZoom(int delta);
public slots:
};

View File

@@ -1,19 +0,0 @@
#ifndef MAPSCENEEVENTFILTER_H
#define MAPSCENEEVENTFILTER_H
#include <QObject>
class MapSceneEventFilter : public QObject
{
Q_OBJECT
protected:
bool eventFilter(QObject *obj, QEvent *event) override;
public:
explicit MapSceneEventFilter(QObject *parent = nullptr);
signals:
void wheelZoom(int delta);
public slots:
};
#endif // MAPSCENEEVENTFILTER_H