RhythmGame 1.4.3
Loading...
Searching...
No Matches
Lr2SelectKeyNavigationFilter.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <QObject>
6#include <QPointer>
7#include <QtQml/qqmlregistration.h>
8
9class Lr2SelectKeyNavigationFilter : public QObject {
10 Q_OBJECT
11 QML_ELEMENT
12 Q_PROPERTY(QObject* target READ target WRITE setTarget NOTIFY targetChanged)
15
16public:
17 explicit Lr2SelectKeyNavigationFilter(QObject* parent = nullptr);
19
20 QObject* target() const;
21 void setTarget(QObject* target);
22
23 bool selectScrollReady() const;
24 void setSelectScrollReady(bool ready);
25
28
29signals:
33
34protected:
35 bool eventFilter(QObject* watched, QEvent* event) override;
36
37private:
38 void uninstallTargetFilter();
39 void installTargetFilter();
40
41 QPointer<QObject> m_target;
42 QPointer<Lr2SelectNavigationController> m_navigationController;
43 bool m_selectScrollReady = false;
44};
Definition Lr2SelectKeyNavigationFilter.h:9
Lr2SelectNavigationController * navigationController
Definition Lr2SelectKeyNavigationFilter.h:14
bool eventFilter(QObject *watched, QEvent *event) override
Definition Lr2SelectKeyNavigationFilter.cpp:54
void setSelectScrollReady(bool ready)
Definition Lr2SelectKeyNavigationFilter.cpp:32
void setTarget(QObject *target)
Definition Lr2SelectKeyNavigationFilter.cpp:17
bool selectScrollReady
Definition Lr2SelectKeyNavigationFilter.h:13
void setNavigationController(Lr2SelectNavigationController *controller)
Definition Lr2SelectKeyNavigationFilter.cpp:45
QML_ELEMENTQObject * target
Definition Lr2SelectKeyNavigationFilter.h:12
Definition Lr2SelectNavigationController.h:12