#ifndef CUSTOMFILEICONPROVIDER_H #define CUSTOMFILEICONPROVIDER_H #include 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; GitRepository *VCSRepository() const; }; #endif // CUSTOMFILEICONPROVIDER_H