1
0
Fork 0
flightgear/src/GUI/GettingStartedScope.cxx
Automatic Release Builder 6b6defbead Add getting-started tips to the launcher
QML implementation of getting started tips, with a nice styled
background box. Tips are defined+positioned inline, and displayed
when their enclosing scope is active.
2021-02-04 11:49:25 +00:00

29 lines
630 B
C++

#include "GettingStartedScope.hxx"
#include "GettingStartedTipsController.hxx"
GettingStartedScope::GettingStartedScope(QObject *parent) : QObject(parent)
{
}
GettingStartedScopeAttached *GettingStartedScope::qmlAttachedProperties(QObject *object)
{
auto c = new GettingStartedScopeAttached(object);
return c;
}
GettingStartedScopeAttached::GettingStartedScopeAttached(QObject *parent) : QObject(parent)
{
}
void GettingStartedScopeAttached::setController(GettingStartedTipsController *controller)
{
if (_controller == controller)
return;
_controller = controller;
emit controllerChanged();
}