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
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
24
26
27class Q_GUI_EXPORT QAppleFileIconEngine : public QAbstractFileIconEngine
28{
29public:
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
36protected:
37 QPixmap filePixmap(const QSize &size, QIcon::Mode, QIcon::State) override;
38
39private:
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
50QT_END_NAMESPACE
51
52#endif // QAPPLEFILEICONENGINE_P_H
Combined button and popup list for selecting options.
Q_FORWARD_DECLARE_OBJC_CLASS(NSImage)
Q_FORWARD_DECLARE_OBJC_CLASS(UIImage)