diff options
| author | Tannin <devnull@localhost> | 2014-04-05 15:36:42 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-04-05 15:36:42 +0200 |
| commit | cabed9b268c9f095d5e3b98a6797b0bcdcd38b1f (patch) | |
| tree | 454b03b0c5664e90fe586e7b39603e34a526d35b /src/modflagicondelegate.h | |
| parent | 98e5e57a845541acddf519a81957261f58008cb9 (diff) | |
| parent | c017f4a0d50b67a44e276bd5ae8929ed3990c62c (diff) | |
Merge with branch1.1
Diffstat (limited to 'src/modflagicondelegate.h')
| -rw-r--r-- | src/modflagicondelegate.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/modflagicondelegate.h b/src/modflagicondelegate.h new file mode 100644 index 00000000..b64ca08f --- /dev/null +++ b/src/modflagicondelegate.h @@ -0,0 +1,19 @@ +#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;
+private:
+ static ModInfo::EFlag m_ConflictFlags[4];
+};
+
+#endif // MODFLAGICONDELEGATE_H
|
