6b6defbead
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.
29 lines
630 B
C++
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();
|
|
}
|