Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquicknativeicon.cpp
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
6
8
9QUrl QQuickNativeIcon::source() const
10{
11 return m_source;
12}
13
14void QQuickNativeIcon::setSource(const QUrl& source)
15{
16 m_source = source;
17}
18
20{
21 return m_name;
22}
23
24void QQuickNativeIcon::setName(const QString& name)
25{
26 m_name = name;
27}
28
30{
31 return m_mask;
32}
33
34void QQuickNativeIcon::setMask(bool mask)
35{
36 m_mask = mask;
37}
38
39bool QQuickNativeIcon::operator==(const QQuickNativeIcon &other) const
40{
41 return m_source == other.m_source && m_name == other.m_name && m_mask == other.m_mask;
42}
43
44bool QQuickNativeIcon::operator!=(const QQuickNativeIcon &other) const
45{
46 return !(*this == other);
47}
48
49QT_END_NAMESPACE
50
51#include "moc_qquicknativeicon_p.cpp"
QString name() const
void setName(const QString &name)
void setSource(const QUrl &source)
bool operator==(const QQuickNativeIcon &other) const
void setMask(bool mask)
bool operator!=(const QQuickNativeIcon &other) const