1// Copyright (C) 2023 basysKom GmbH, opensource@basyskom.com
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "xmlelement.h"
5
6#include "util.h"
7
8#include <QtCore/qdebug.h>
9
10XmlElement::XmlElement(const QString &name)
11 : m_name(name)
12{}
13
14void XmlElement::setName(const QString &name)
15{
16 m_name = name;
17}
18
19QString XmlElement::name() const
20{
21 return m_name;
22}
23
24QString XmlElement::lowerFirstName() const
25{
26 return Util::lowerFirstLetter(temp: m_name);
27}
28
29void XmlElement::print() const
30{
31 qDebug() << "name: " << m_name;
32}
33

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtopcua/tools/datatypecodegenerator/xmlelement.cpp