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