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
qfileiconprovider_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QFILEICONPROVIDER_P_H
6#define QFILEICONPROVIDER_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 <QtWidgets/private/qtwidgetsglobal_p.h>
21
22#include <private/qabstractfileiconprovider_p.h>
23#include <QtCore/qstring.h>
24#include <QtGui/qicon.h>
25#include <QtWidgets/qstyle.h>
26
28
29class QFileInfo;
30
32{
33 Q_DECLARE_PUBLIC(QFileIconProvider)
34
35public:
37 QIcon getIcon(QStyle::StandardPixmap name) const;
38 QIcon getIcon(const QFileInfo &fi) const;
39
41
42private:
43 mutable QIcon file;
44 mutable QIcon fileLink;
45 mutable QIcon directory;
46 mutable QIcon directoryLink;
47 mutable QIcon harddisk;
48 mutable QIcon floppy;
49 mutable QIcon cdrom;
50 mutable QIcon ram;
51 mutable QIcon network;
52 mutable QIcon computer;
53 mutable QIcon desktop;
54 mutable QIcon trashcan;
55 mutable QIcon generic;
56 mutable QIcon home;
57};
58
59QT_END_NAMESPACE
60
61#endif // QFILEICONPROVIDER_P_H
QIcon getIcon(QStyle::StandardPixmap name) const
QIcon getIcon(const QFileInfo &fi) const