Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qapplefileiconengine_p.h
Go to the documentation of this file.
1
// Copyright (C) 2025 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
QAPPLEFILEICONENGINE_P_H
6
#
define
QAPPLEFILEICONENGINE_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
<
QtGui
/
private
/
qabstractfileiconengine_p
.
h
>
20
#
include
<
QtCore
/
private
/
qcore_mac_p
.
h
>
21
22
Q_FORWARD_DECLARE_OBJC_CLASS
(
UIImage
);
23
Q_FORWARD_DECLARE_OBJC_CLASS
(
NSImage
);
24
25
QT_BEGIN_NAMESPACE
26
27
class
Q_GUI_EXPORT
QAppleFileIconEngine
:
public
QAbstractFileIconEngine
28
{
29
public
:
30
explicit
QAppleFileIconEngine(
const
QFileInfo &info, QPlatformTheme::IconOptions opts);
31
~QAppleFileIconEngine() override;
32
33
bool
isNull() override;
34
QList<QSize> availableSizes(QIcon::Mode = QIcon::Normal, QIcon::State = QIcon::Off) override;
35
36
protected
:
37
QPixmap filePixmap(
const
QSize &size, QIcon::Mode, QIcon::State) override;
38
39
private
:
40
#
if
defined
(
Q_OS_MACOS
)
41
NSImage *m_image = nil;
42
#
elif
defined
(
QT_PLATFORM_UIKIT
)
43
UIImage *m_image = nil;
44
#
endif
45
46
QPixmap m_pixmap;
47
};
48
49
50
QT_END_NAMESPACE
51
52
#
endif
// QAPPLEFILEICONENGINE_P_H
QAppleFileIconEngine
Definition
qapplefileiconengine_p.h:28
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_FORWARD_DECLARE_OBJC_CLASS
Q_FORWARD_DECLARE_OBJC_CLASS(NSImage)
Q_FORWARD_DECLARE_OBJC_CLASS
Q_FORWARD_DECLARE_OBJC_CLASS(UIImage)
qtbase
src
gui
platform
darwin
qapplefileiconengine_p.h
Generated on
for Qt by
1.18.0