24 unregisterFromScope();
30 return _controller.data();
35 if (_enabled && !_controller) {
39 QQuickItem::componentComplete();
56 unregisterFromScope();
64 auto ctl = findController();
66 ctl->showOneShotTip(
this);
87 const bool isParentChanged = (change == ItemParentHasChanged);
88 if (isParentChanged && _enabled) {
89 unregisterFromScope();
92 QQuickItem::itemChange(change, value);
94 if (isParentChanged && _enabled) {
99void GettingStartedTip::registerWithScope()
102 unregisterFromScope();
109 auto ctl = findController();
114 bool ok = ctl->addTip(
this);
123 QQuickItem* pr =
const_cast<QQuickItem*
>(parentItem());
129 auto sa = qobject_cast<GettingStartedScopeAttached*>(qmlAttachedPropertiesObject<GettingStartedScope>(pr,
false));
130 if (sa && sa->controller()) {
131 return sa->controller();
134 pr = pr->parentItem();
140void GettingStartedTip::unregisterFromScope()
143 _controller->removeTip(
this);
static bool static_globalEnableTips
GettingStartedTipsController * controller
void standaloneChanged(bool standalone)
void setStandalone(bool standalone)
void componentComplete() override
~GettingStartedTip() override
GettingStartedTip(QQuickItem *parent=nullptr)
bool standalone
standalone tips are excluded from their scope when activated; instead they need to be activated manua...
void itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &value) override
void setEnabled(bool enabled)
static void setGlobalTipsEnabled(bool enable)
Manage presentation of getting started tips on a screen/page.