diff options
Diffstat (limited to 'src/src/modcontenticondelegate.h')
| -rw-r--r-- | src/src/modcontenticondelegate.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/src/modcontenticondelegate.h b/src/src/modcontenticondelegate.h new file mode 100644 index 0000000..0e9c481 --- /dev/null +++ b/src/src/modcontenticondelegate.h @@ -0,0 +1,30 @@ +#ifndef MODCONTENTICONDELEGATE_H
+#define MODCONTENTICONDELEGATE_H
+
+#include "icondelegate.h"
+
+class ModListView;
+
+class ModContentIconDelegate : public IconDelegate
+{
+ Q_OBJECT
+public:
+ explicit ModContentIconDelegate(ModListView* view, int column = -1,
+ int compactSize = 150);
+
+ bool helpEvent(QHelpEvent* event, QAbstractItemView* view,
+ const QStyleOptionViewItem& option, const QModelIndex& index) override;
+
+protected:
+ QList<QString> getIcons(const QModelIndex& index) const override;
+ size_t getNumIcons(const QModelIndex& index) const override;
+
+ // constructor for color table
+ //
+ ModContentIconDelegate() : ModContentIconDelegate(nullptr) {}
+
+private:
+ ModListView* m_view;
+};
+
+#endif // GENERICICONDELEGATE_H
|
