fileiconprovider.h 425 B

12345678910111213141516171819202122232425
  1. #ifndef FILEICONPROVIDER_H
  2. #define FILEICONPROVIDER_H
  3. #include <QDeclarativeImageProvider>
  4. #include <QDirModel>
  5. #include <QMap>
  6. class FileIconProvider : public QDeclarativeImageProvider
  7. {
  8. public:
  9. explicit FileIconProvider();
  10. QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize);
  11. signals:
  12. public slots:
  13. private:
  14. QMap<QString,QString> mIconsMap;
  15. };
  16. #endif // FILEICONPROVIDER_H