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
qandroidplatformfileiconengine.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
QANDROIDPLATFORMFILEICONENGINE_H
6
#
define
QANDROIDPLATFORMFILEICONENGINE_H
7
8
#
include
<
QtCore
/
qjnitypes
.
h
>
9
10
#
include
<
QtGui
/
qpixmap
.
h
>
11
#
include
<
QtGui
/
private
/
qabstractfileiconengine_p
.
h
>
12
#
include
"qandroidplatformiconengine.h"
13
14
#
ifndef
QT_NO_ICON
15
16
QT_BEGIN_NAMESPACE
17
18
Q_DECLARE_JNI_CLASS(Drawable,
"android/graphics/drawable/Drawable"
)
19
20
class
QAndroidPlatformFileIconEngine :
public
QAbstractFileIconEngine
21
{
22
public
:
23
explicit
QAndroidPlatformFileIconEngine(
const
QFileInfo &info, QPlatformTheme::IconOptions opts);
24
~QAndroidPlatformFileIconEngine();
25
26
QList<QSize> availableSizes(QIcon::Mode = QIcon::Normal, QIcon::State = QIcon::Off) override
27
{
return
{{16, 16}, {24, 24}, {48, 48}, {128, 128}}; }
28
29
bool
isNull() override;
30
31
protected
:
32
QPixmap filePixmap(
const
QSize &size, QIcon::Mode, QIcon::State) override;
33
34
private
:
35
std::optional<QtJniTypes::Drawable> m_drawable;
36
QPixmap m_pixmap;
37
};
38
39
QT_END_NAMESPACE
40
41
#
endif
// QT_NO_ICON
42
43
#
endif
// QANDROIDPLATFORMFILEICONENGINE_H
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
Q_DECLARE_JNI_CLASS
Q_DECLARE_JNI_CLASS(MotionEvent, "android/view/MotionEvent")
qtbase
src
plugins
platforms
android
qandroidplatformfileiconengine.h
Generated on
for Qt by
1.16.1