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
qquicknativeiconloader_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
QQUICKNATIVEICONLOADER_P_H
6
#
define
QQUICKNATIVEICONLOADER_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
#
include
<
QtGui
/
qicon
.
h
>
22
#
include
<
QtQuick
/
private
/
qquickpixmap_p
.
h
>
23
#
include
<
QtQuickTemplates2
/
private
/
qquickicon_p
.
h
>
24
25
#
include
"qquicknativeicon_p.h"
26
27
QT_BEGIN_NAMESPACE
28
29
class
QObject;
30
31
class
QQuickNativeIconLoader
:
public
QQuickPixmap
32
{
33
public
:
34
QQuickNativeIconLoader
(
int
slot, QObject *parent);
35
36
bool
isEnabled
()
const
;
37
void
setEnabled
(
bool
enabled);
38
39
QIcon
toQIcon
()
const
;
40
41
QQuickIcon
icon
()
const
;
42
void
setIcon
(
const
QQuickIcon &icon);
43
44
private
:
45
void
loadIcon();
46
47
QObject *m_parent;
48
int
m_slot;
49
bool
m_enabled;
50
QQuickIcon m_icon;
51
};
52
53
QT_END_NAMESPACE
54
55
#
endif
// QQUICKNATIVEICONLOADER_P_H
QQuickNativeIconLoader
Definition
qquicknativeiconloader_p.h:32
QQuickNativeIconLoader::setIcon
void setIcon(const QQuickIcon &icon)
Definition
qquicknativeiconloader.cpp:44
QQuickNativeIconLoader::icon
QQuickIcon icon() const
Definition
qquicknativeiconloader.cpp:39
QQuickNativeIconLoader::toQIcon
QIcon toQIcon() const
Definition
qquicknativeiconloader.cpp:33
QQuickNativeIconLoader::isEnabled
bool isEnabled() const
Definition
qquicknativeiconloader.cpp:21
QQuickNativeIconLoader::setEnabled
void setEnabled(bool enabled)
Definition
qquicknativeiconloader.cpp:26
QQuickNativeIconLoader::QQuickNativeIconLoader
QQuickNativeIconLoader(int slot, QObject *parent)
Definition
qquicknativeiconloader.cpp:13
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtdeclarative
src
quicktemplates
qquicknativeiconloader_p.h
Generated on
for Qt by
1.14.0