aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/assetexporterplugin/dumpers/nodedumper.cpp
blob: c6c4d96763ef1d310d95aad917e4424d016ed509 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#include "nodedumper.h"
#include "assetexportpluginconstants.h"

#include <auxiliarydataproperties.h>

namespace QmlDesigner {
NodeDumper::NodeDumper(const QByteArrayList &lineage, const ModelNode &node) :
    m_node(node),
    m_objectNode(node),
    m_lineage(lineage)
{

}

QVariant NodeDumper::propertyValue(const PropertyName &name) const
{
    return m_objectNode.instanceValue(name);
}

QString NodeDumper::uuid() const
{
    return m_node.auxiliaryDataWithDefault(uuidProperty).toString();
}

}