Use system file type specific icons in contents tab

The icon is determined via QFileIconProvider using filename extension only.
This commit is contained in:
Eugene Shalygin
2016-12-30 01:14:13 +01:00
parent 8318f72a9e
commit 30bf6e958f
5 changed files with 56 additions and 5 deletions

View File

@@ -39,6 +39,7 @@
#include "base/bittorrent/torrentinfo.h"
#include "torrentcontentmodelitem.h"
class QFileIconProvider;
class TorrentContentModelFile;
class TorrentContentModel: public QAbstractItemModel
@@ -77,6 +78,7 @@ public slots:
private:
TorrentContentModelFolder *m_rootItem;
QVector<TorrentContentModelFile *> m_filesIndex;
QFileIconProvider *m_fileIconProvider;
};
#endif // TORRENTCONTENTMODEL_H