1// Copyright (C) 2023 The Qt Company Ltd.
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 "qquicknativeicon_p.h"
5
6QT_BEGIN_NAMESPACE
7
8QUrl QQuickNativeIcon::source() const
9{
10 return m_source;
11}
12
13void QQuickNativeIcon::setSource(const QUrl& source)
14{
15 m_source = source;
16}
17
18QString QQuickNativeIcon::name() const
19{
20 return m_name;
21}
22
23void QQuickNativeIcon::setName(const QString& name)
24{
25 m_name = name;
26}
27
28bool QQuickNativeIcon::isMask() const
29{
30 return m_mask;
31}
32
33void QQuickNativeIcon::setMask(bool mask)
34{
35 m_mask = mask;
36}
37
38bool QQuickNativeIcon::operator==(const QQuickNativeIcon &other) const
39{
40 return m_source == other.m_source && m_name == other.m_name && m_mask == other.m_mask;
41}
42
43bool QQuickNativeIcon::operator!=(const QQuickNativeIcon &other) const
44{
45 return !(*this == other);
46}
47
48QT_END_NAMESPACE
49
50#include "moc_qquicknativeicon_p.cpp"
51

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtdeclarative/src/quicktemplates/qquicknativeicon.cpp