summaryrefslogtreecommitdiffstats
path: root/smdirmodel.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-03-17 09:30:45 +0100
committerArno <am@disconnect.de>2013-03-17 09:30:45 +0100
commitffe0b7556907bc4c6dfaed87a98e7fe68378cfa2 (patch)
tree392ed3498245ef97691959dbb2f648f1d03c01e6 /smdirmodel.h
parent744c94e9a1197068457cc52dde57472cb89e1819 (diff)
downloadSheMov-ffe0b7556907bc4c6dfaed87a98e7fe68378cfa2.tar.gz
SheMov-ffe0b7556907bc4c6dfaed87a98e7fe68378cfa2.tar.bz2
SheMov-ffe0b7556907bc4c6dfaed87a98e7fe68378cfa2.zip
Icons for SmDirModel
Made Icons for SmDirModel configurable. For now it's folders, movies, pictures and others.
Diffstat (limited to 'smdirmodel.h')
-rw-r--r--smdirmodel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/smdirmodel.h b/smdirmodel.h
index 690efac..d087558 100644
--- a/smdirmodel.h
+++ b/smdirmodel.h
@@ -13,6 +13,8 @@
#include <QModelIndex>
#include <QList>
#include <QFileInfo>
+#include <QMap>
+#include <QIcon>
#include <smtreemodel.h>
#include <smdirwatcher.h>
@@ -37,6 +39,8 @@ class SmDirModel : public SmTreeModel {
public slots:
void setDir(const QString &dir);
void dirEvent(const QString &file, int e);
+ void readSettings();
+ void refresh();
private slots:
void populate();
@@ -47,6 +51,7 @@ class SmDirModel : public SmTreeModel {
QStringList mHeaders;
QString mCur;
QTimer *mRunTimer;
+ QMap<QString, QIcon> mIcons;
};
#endif // SMDIRMODEL_H