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

source code of qtdeclarative/src/labs/platform/qquicklabsplatformicon.cpp