forked from qt-creator/qt-creator
QmlPuppet: Remove private dependencies from BehaviorNodeInstance
Change-Id: I16f2c4189f7b68bf1cff90d0a9987b4bf4212905 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
43d716bb5a
commit
0d67510270
@@ -42,8 +42,9 @@
|
||||
|
||||
#include <private/qobject_p.h>
|
||||
#include <private/qqmltimer_p.h>
|
||||
#include <private/qquicktransition_p.h>
|
||||
#include <private/qquickanimation_p.h>
|
||||
#include <private/qquicktransition_p.h>
|
||||
#include <private/qquickbehavior_p.h>
|
||||
#include <private/qquicktext_p.h>
|
||||
#include <private/qquicktextinput_p.h>
|
||||
#include <private/qquicktextedit_p.h>
|
||||
@@ -564,6 +565,13 @@ void disableTransition(QObject *object)
|
||||
transition->setFromState("invalidState");
|
||||
}
|
||||
|
||||
void disableBehaivour(QObject *object)
|
||||
{
|
||||
QQuickBehavior* behavior = qobject_cast<QQuickBehavior*>(object);
|
||||
Q_ASSERT(behavior);
|
||||
behavior->setEnabled(false);
|
||||
}
|
||||
|
||||
ComponentCompleteDisabler::ComponentCompleteDisabler()
|
||||
{
|
||||
DesignerSupport::disableComponentComplete();
|
||||
|
||||
Reference in New Issue
Block a user