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