2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2012-09-19 15:57:22 +02:00
|
|
|
|
|
|
|
|
#include "qmltransitionnodeinstance.h"
|
2015-05-19 17:06:48 +02:00
|
|
|
|
|
|
|
|
#include <qmlprivategate.h>
|
2012-09-19 15:57:22 +02:00
|
|
|
|
|
|
|
|
namespace QmlDesigner {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2015-05-19 17:06:48 +02:00
|
|
|
QmlTransitionNodeInstance::QmlTransitionNodeInstance(QObject *transition)
|
2012-09-19 15:57:22 +02:00
|
|
|
: ObjectNodeInstance(transition)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QmlTransitionNodeInstance::Pointer QmlTransitionNodeInstance::create(QObject *object)
|
|
|
|
|
{
|
2015-05-19 17:06:48 +02:00
|
|
|
Pointer instance(new QmlTransitionNodeInstance(object));
|
2012-09-19 15:57:22 +02:00
|
|
|
|
|
|
|
|
instance->populateResetHashes();
|
2015-05-19 17:06:48 +02:00
|
|
|
QmlPrivateGate::disableTransition(object);
|
2012-09-19 15:57:22 +02:00
|
|
|
|
|
|
|
|
return instance;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool QmlTransitionNodeInstance::isTransition() const
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2014-04-17 17:41:18 +02:00
|
|
|
PropertyNameList QmlTransitionNodeInstance::ignoredProperties() const
|
2012-09-19 15:57:22 +02:00
|
|
|
{
|
2016-06-20 14:36:52 +02:00
|
|
|
static const PropertyNameList properties({"from", "to"});
|
|
|
|
|
return properties;
|
2012-09-19 15:57:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|