Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qabstractfileiconprovider_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 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
4#ifndef QABSTRACTFILEICONPROVIDER_P_H
5#define QABSTRACTFILEICONPROVIDER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19#if QT_CONFIG(mimetype)
20#include <QtCore/QMimeDatabase>
21#endif
23
25
27{
28 Q_DECLARE_PUBLIC(QAbstractFileIconProvider)
29
30public:
33
34 QIcon getPlatformThemeIcon(QAbstractFileIconProvider::IconType type) const;
35 QIcon getIconThemeIcon(QAbstractFileIconProvider::IconType type) const;
36 QIcon getPlatformThemeIcon(const QFileInfo &info) const;
37 QIcon getIconThemeIcon(const QFileInfo &info) const;
38
39 static void clearIconTypeCache();
40
41 QAbstractFileIconProvider *q_ptr = nullptr;
42 QAbstractFileIconProvider::Options options = {};
43
44#if QT_CONFIG(mimetype)
45 QMimeDatabase mimeDatabase;
46#endif
47};
48
50
51#endif // QABSTRACTFILEICONPROVIDER_P_H
IconType
\value Computer The icon used for the computing device as a whole \value Desktop The icon for the spe...
\inmodule QtCore \reentrant
Definition qfileinfo.h:22
The QIcon class provides scalable icons in different modes and states.
Definition qicon.h:20
\inmodule QtCore
Combined button and popup list for selecting options.
GLenum type
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
QFileInfo info(fileName)
[8]