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
13QT_BEGIN_NAMESPACE
14
15
16class QFileIconProviderPrivate;
17
18class Q_WIDGETS_EXPORT QFileIconProvider : public QAbstractFileIconProvider
19{
20public:
21 QFileIconProvider();
22 ~QFileIconProvider();
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
32QT_END_NAMESPACE
33
34#endif // QFILEICONPROVIDER_H
35

source code of qtbase/src/widgets/itemviews/qfileiconprovider.h