Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qfileiconprovider.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
4#ifndef QFILEICONPROVIDER_H
5#define QFILEICONPROVIDER_H
6
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtCore/qfileinfo.h>
9#include <QtCore/qscopedpointer.h>
10#include <QtGui/qicon.h>
11#include <QtGui/qabstractfileiconprovider.h>
12
14
15
17
18class Q_WIDGETS_EXPORT QFileIconProvider : public QAbstractFileIconProvider
19{
20public:
23
24 QIcon icon(IconType type) const override;
25 QIcon icon(const QFileInfo &info) const override;
26
27private:
28 Q_DECLARE_PRIVATE(QFileIconProvider)
29 Q_DISABLE_COPY(QFileIconProvider)
30};
31
33
34#endif // QFILEICONPROVIDER_H
IconType
\value Computer The icon used for the computing device as a whole \value Desktop The icon for the spe...
\inmodule QtWidgets
~QFileIconProvider()
Destroys the file icon provider.
\inmodule QtCore \reentrant
Definition qfileinfo.h:22
The QIcon class provides scalable icons in different modes and states.
Definition qicon.h:20
Combined button and popup list for selecting options.
GLenum type
QFileInfo info(fileName)
[8]