aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates/qquicknativeicon.cpp
blob: dfc8a4cc7e758a8edcc9adbb833a8cf79a1503de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#include "qquicknativeicon_p.h"

QT_BEGIN_NAMESPACE

QUrl QQuickNativeIcon::source() const
{
    return m_source;
}

void QQuickNativeIcon::setSource(const QUrl& source)
{
    m_source = source;
}

QString QQuickNativeIcon::name() const
{
    return m_name;
}

void QQuickNativeIcon::setName(const QString& name)
{
    m_name = name;
}

bool QQuickNativeIcon::isMask() const
{
    return m_mask;
}

void QQuickNativeIcon::setMask(bool mask)
{
    m_mask = mask;
}

bool QQuickNativeIcon::operator==(const QQuickNativeIcon &other) const
{
    return m_source == other.m_source && m_name == other.m_name && m_mask == other.m_mask;
}

bool QQuickNativeIcon::operator!=(const QQuickNativeIcon &other) const
{
    return !(*this == other);
}

QT_END_NAMESPACE

#include "moc_qquicknativeicon_p.cpp"