summaryrefslogtreecommitdiff
path: root/src/modflagicondelegate.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-07 19:47:13 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-10 10:27:30 +0100
commit183440d6949578c2c626022d42ee412919a19552 (patch)
tree95c68be7954809ef98d1d535c928cbe5f92571c1 /src/modflagicondelegate.h
parent1ac3f4d8e8ee7461f047d34e196df40499e89557 (diff)
Display mod flags on collapsed separators.
Diffstat (limited to 'src/modflagicondelegate.h')
-rw-r--r--src/modflagicondelegate.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modflagicondelegate.h b/src/modflagicondelegate.h
index 63ab8978..24dd4a0e 100644
--- a/src/modflagicondelegate.h
+++ b/src/modflagicondelegate.h
@@ -6,12 +6,14 @@
#include "icondelegate.h"
#include "modinfo.h"
+class ModListView;
+
class ModFlagIconDelegate : public IconDelegate
{
Q_OBJECT;
public:
- explicit ModFlagIconDelegate(QTreeView* view, int column = -1, int compactSize = 120);
+ explicit ModFlagIconDelegate(ModListView* view, int column = -1, int compactSize = 120);
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
protected:
@@ -25,6 +27,9 @@ protected:
//
ModFlagIconDelegate() : ModFlagIconDelegate(nullptr) { }
+private:
+ ModListView* m_view;
+
};
#endif // MODFLAGICONDELEGATE_H