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>
13
14#ifndef QT_NO_ICON
15
17
18Q_DECLARE_JNI_CLASS(Drawable, "android/graphics/drawable/Drawable")
19
20class QAndroidPlatformFileIconEngine : public QAbstractFileIconEngine
21{
22public:
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
31protected:
32 QPixmap filePixmap(const QSize &size, QIcon::Mode, QIcon::State) override;
33
34private:
35 std::optional<QtJniTypes::Drawable> m_drawable;
36 QPixmap m_pixmap;
37};
38
39QT_END_NAMESPACE
40
41#endif // QT_NO_ICON
42
43#endif // QANDROIDPLATFORMFILEICONENGINE_H
Combined button and popup list for selecting options.
Q_DECLARE_JNI_CLASS(MotionEvent, "android/view/MotionEvent")