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
qquicklabsplatformicon_p.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef QQUICKLABSPLATFORMICON_P_H
6#define QQUICKLABSPLATFORMICON_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{
37
38public:
39 QUrl source() const;
40 void setSource(const QUrl &source);
41
42 QString name() const;
43 void setName(const QString &name);
44
45 bool isMask() const;
46 void setMask(bool mask);
47
48 bool operator==(const QQuickLabsPlatformIcon &other) const;
49 bool operator!=(const QQuickLabsPlatformIcon &other) const;
50
51private:
52 bool m_mask = false;
53 QUrl m_source;
54 QString m_name;
55};
56
57QT_END_NAMESPACE
58
59#endif // QQUICKLABSPLATFORMICON_P_H
void setName(const QString &name)
void setSource(const QUrl &source)
bool operator==(const QQuickLabsPlatformIcon &other) const
bool operator!=(const QQuickLabsPlatformIcon &other) const
Combined button and popup list for selecting options.