summaryrefslogtreecommitdiff
path: root/src/modflagicondelegate.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-01-23 00:05:46 +0100
committerTannin <devnull@localhost>2014-01-23 00:05:46 +0100
commite597823337c858f2985c615ee5147f47567991ee (patch)
treee42647cf1114ebd4d42e4a8c15a91b941961c3df /src/modflagicondelegate.h
parente69210b3a78c4a6c63086d84e6bdb2c3b47d8944 (diff)
- boss integration
- plugin list can now also display multiple flags for a file (like the mod list) - changed some compiler&linker settings to produce smaller binaries
Diffstat (limited to 'src/modflagicondelegate.h')
-rw-r--r--src/modflagicondelegate.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/modflagicondelegate.h b/src/modflagicondelegate.h
new file mode 100644
index 00000000..800e2741
--- /dev/null
+++ b/src/modflagicondelegate.h
@@ -0,0 +1,18 @@
+#ifndef MODFLAGICONDELEGATE_H
+#define MODFLAGICONDELEGATE_H
+
+#include "icondelegate.h"
+
+class ModFlagIconDelegate : public IconDelegate
+{
+public:
+ explicit ModFlagIconDelegate(QObject *parent = 0);
+private:
+ virtual QList<QIcon> getIcons(const QModelIndex &index) const;
+ virtual size_t getNumIcons(const QModelIndex &index) const;
+
+ QIcon getFlagIcon(ModInfo::EFlag flag) const;
+
+};
+
+#endif // MODFLAGICONDELEGATE_H