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_p.h
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
5#ifndef QQUICKNATIVEICON_P_H
6#define QQUICKNATIVEICON_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/qurl.h>
20#include <QtCore/qstring.h>
21
22#include <QtQml/qqmlengine.h>
23#include <QtCore/private/qglobal_p.h>
24
25QT_BEGIN_NAMESPACE
26
27class QObject;
28
30{
36
37public:
38 QUrl source() const;
39 void setSource(const QUrl &source);
40
41 QString name() const;
42 void setName(const QString &name);
43
44 bool isMask() const;
45 void setMask(bool mask);
46
47 bool operator==(const QQuickNativeIcon &other) const;
48 bool operator!=(const QQuickNativeIcon &other) const;
49
50private:
51 bool m_mask = false;
52 QUrl m_source;
53 QString m_name;
54};
55
56QT_END_NAMESPACE
57
58#endif // QQUICKNATIVEICON_P_H
QString name() const
void setName(const QString &name)
QML_ANONYMOUSQUrl source
void setSource(const QUrl &source)
bool operator==(const QQuickNativeIcon &other) const
void setMask(bool mask)
bool operator!=(const QQuickNativeIcon &other) const