44 lines
917 B
C++
44 lines
917 B
C++
|
#pragma once
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QQmlEngine>
|
||
|
|
||
|
class GettingStartedTipsController;
|
||
|
|
||
|
class GettingStartedScopeAttached : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
Q_PROPERTY(GettingStartedTipsController* controller READ controller WRITE setController NOTIFY controllerChanged)
|
||
|
public:
|
||
|
GettingStartedScopeAttached(QObject* parent);
|
||
|
|
||
|
GettingStartedTipsController* controller() const
|
||
|
{
|
||
|
return _controller;
|
||
|
}
|
||
|
|
||
|
public slots:
|
||
|
void setController(GettingStartedTipsController* controller);
|
||
|
|
||
|
signals:
|
||
|
void controllerChanged();
|
||
|
|
||
|
private:
|
||
|
GettingStartedTipsController* _controller = nullptr;
|
||
|
};
|
||
|
|
||
|
class GettingStartedScope : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit GettingStartedScope(QObject *parent = nullptr);
|
||
|
|
||
|
static GettingStartedScopeAttached* qmlAttachedProperties(QObject *object);
|
||
|
signals:
|
||
|
|
||
|
};
|
||
|
|
||
|
QML_DECLARE_TYPEINFO(GettingStartedScope, QML_HAS_ATTACHED_PROPERTIES)
|