| 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 | |
| 13 | QT_BEGIN_NAMESPACE |
| 14 | |
| 15 | |
| 16 | class QFileIconProviderPrivate; |
| 17 | |
| 18 | class Q_WIDGETS_EXPORT QFileIconProvider : public QAbstractFileIconProvider |
| 19 | { |
| 20 | public: |
| 21 | QFileIconProvider(); |
| 22 | ~QFileIconProvider(); |
| 23 | |
| 24 | QIcon icon(IconType type) const override; |
| 25 | QIcon icon(const QFileInfo &info) const override; |
| 26 | |
| 27 | private: |
| 28 | Q_DECLARE_PRIVATE(QFileIconProvider) |
| 29 | Q_DISABLE_COPY(QFileIconProvider) |
| 30 | }; |
| 31 | |
| 32 | QT_END_NAMESPACE |
| 33 | |
| 34 | #endif // QFILEICONPROVIDER_H |
| 35 | |