FlightGear next
HoverArea.hxx
Go to the documentation of this file.
1#ifndef HOVERAREA_HXX
2#define HOVERAREA_HXX
3
4#include <QQuickItem>
5
6class HoverArea : public QQuickItem
7{
8 Q_OBJECT
9
10 Q_PROPERTY(bool containsMouse READ containsMouse NOTIFY containsMouseChanged);
11
12public:
13 HoverArea();
14
15 bool containsMouse() const
16 {
17 return m_containsMouse;
18 }
19
20signals:
21
23
24protected:
25 bool eventFilter(QObject* sender, QEvent* event) override;
26
27private:
28 bool m_containsMouse = false;
29};
30
31#endif // HOVERAREA_HXX
bool eventFilter(QObject *sender, QEvent *event) override
Definition HoverArea.cxx:17
void containsMouseChanged(bool containsMouse)
bool containsMouse() const
Definition HoverArea.hxx:15
bool containsMouse
Definition HoverArea.hxx:10