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
25
QT_BEGIN_NAMESPACE
26
27
class
QObject;
28
29
class
QQuickNativeIcon
30
{
31
Q_GADGET
32
QML_ANONYMOUS
33
Q_PROPERTY
(
QUrl
source
READ
source
WRITE
setSource
FINAL
)
34
Q_PROPERTY
(
QString
name
READ
name
WRITE
setName
FINAL
)
35
Q_PROPERTY
(
bool
mask
READ
isMask
WRITE
setMask
FINAL
)
36
37
public
:
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
50
private
:
51
bool
m_mask =
false
;
52
QUrl m_source;
53
QString m_name;
54
};
55
56
QT_END_NAMESPACE
57
58
#
endif
// QQUICKNATIVEICON_P_H
QQuickNativeIcon
Definition
qquicknativeicon_p.h:30
QQuickNativeIcon::name
QString name() const
Definition
qquicknativeicon.cpp:19
QQuickNativeIcon::setName
void setName(const QString &name)
Definition
qquicknativeicon.cpp:24
QQuickNativeIcon::source
QML_ANONYMOUSQUrl source
Definition
qquicknativeicon_p.h:33
QQuickNativeIcon::setSource
void setSource(const QUrl &source)
Definition
qquicknativeicon.cpp:14
QQuickNativeIcon::operator==
bool operator==(const QQuickNativeIcon &other) const
Definition
qquicknativeicon.cpp:39
QQuickNativeIcon::isMask
bool isMask() const
Definition
qquicknativeicon.cpp:29
QQuickNativeIcon::setMask
void setMask(bool mask)
Definition
qquicknativeicon.cpp:34
QQuickNativeIcon::operator!=
bool operator!=(const QQuickNativeIcon &other) const
Definition
qquicknativeicon.cpp:44
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtdeclarative
src
quicktemplates
qquicknativeicon_p.h
Generated on
for Qt by
1.14.0