FlightGear next
GettingStartedScope.hxx
Go to the documentation of this file.
1#pragma once
2
3#include <QObject>
4#include <QQmlEngine>
5
7
8#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
9Q_MOC_INCLUDE("GettingStartedTipsController.hxx")
10#endif
11class GettingStartedScopeAttached : public QObject
12{
13 Q_OBJECT
14
16public:
17 GettingStartedScopeAttached(QObject* parent);
18
20 {
21 return _controller;
22 }
23
24public slots:
26
27signals:
29
30private:
31 GettingStartedTipsController* _controller = nullptr;
32};
33
34class GettingStartedScope : public QObject
35{
36 Q_OBJECT
37
38public:
39 explicit GettingStartedScope(QObject *parent = nullptr);
40
42signals:
43
44};
45
46QML_DECLARE_TYPEINFO(GettingStartedScope, QML_HAS_ATTACHED_PROPERTIES)
void setController(GettingStartedTipsController *controller)
GettingStartedTipsController * controller() const
GettingStartedTipsController * controller
GettingStartedScopeAttached(QObject *parent)
static GettingStartedScopeAttached * qmlAttachedProperties(QObject *object)
GettingStartedScope(QObject *parent=nullptr)
Manage presentation of getting started tips on a screen/page.