2022-02-13 20:08:18 +08:00
|
|
|
#ifndef CUSTOMFILEICONPROVIDER_H
|
|
|
|
#define CUSTOMFILEICONPROVIDER_H
|
|
|
|
|
|
|
|
#include <QFileIconProvider>
|
|
|
|
|
2022-02-14 00:13:00 +08:00
|
|
|
class GitManager;
|
2022-02-13 20:08:18 +08:00
|
|
|
class CustomFileIconProvider : public QFileIconProvider
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CustomFileIconProvider();
|
2022-02-14 00:13:00 +08:00
|
|
|
~CustomFileIconProvider();
|
|
|
|
private:
|
|
|
|
GitManager* mVCSManager;
|
2022-02-13 20:08:18 +08:00
|
|
|
// QFileIconProvider interface
|
|
|
|
public:
|
|
|
|
QIcon icon(IconType type) const override;
|
|
|
|
QIcon icon(const QFileInfo &info) const override;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CUSTOMFILEICONPROVIDER_H
|