RedPanda-CPP/RedPandaIDE/customfileiconprovider.h

24 lines
579 B
C
Raw Normal View History

#ifndef CUSTOMFILEICONPROVIDER_H
#define CUSTOMFILEICONPROVIDER_H
#include <QFileIconProvider>
class GitRepository;
class CustomFileIconProvider : public QFileIconProvider
{
public:
CustomFileIconProvider();
~CustomFileIconProvider();
void setRootFolder(const QString& folder);
void update();
private:
GitRepository* mVCSRepository;
// QFileIconProvider interface
public:
QIcon icon(IconType type) const override;
QIcon icon(const QFileInfo &info) const override;
2022-02-15 21:39:17 +08:00
GitRepository *VCSRepository() const;
};
#endif // CUSTOMFILEICONPROVIDER_H