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

source code of qtdeclarative/src/labs/platform/qquicklabsplatformicon_p.h