DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dfileiconprovider.h
1// SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DFILEICONPROVIDER_H
6#define DFILEICONPROVIDER_H
7
8#include <DObject>
9#include <dtkwidget_global.h>
10
11#include <QFileIconProvider>
12
13DWIDGET_BEGIN_NAMESPACE
14
15class DFileIconProviderPrivate;
16class DFileIconProvider : public QFileIconProvider, public DTK_CORE_NAMESPACE::DObject
17{
18public:
20 virtual ~DFileIconProvider() Q_DECL_OVERRIDE;
21
22 static DFileIconProvider *globalProvider();
23
24 QIcon icon(const QFileInfo &info) const Q_DECL_OVERRIDE;
25 QIcon icon(const QFileInfo &info, const QIcon &feedback) const;
26
27private:
28 D_DECLARE_PRIVATE(DFileIconProvider)
29 Q_DISABLE_COPY(DFileIconProvider)
30};
31
32DWIDGET_END_NAMESPACE
33
34#endif // DFILEICONPROVIDER_H
Definition dfileiconprovider.h:17