summaryrefslogtreecommitdiff
path: root/src/modlistversiondelegate.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-08 20:15:01 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-10 10:27:30 +0100
commit2606b10c7efdaa65e56ece77bad90bd55c154111 (patch)
tree89f002301d253a5812dc4c15a29eb425531dc809 /src/modlistversiondelegate.h
parent3e5d71923ffa41e2af552024cd929aca93830fd0 (diff)
Display upgrade/warning for versions on collapsed separators.
Diffstat (limited to 'src/modlistversiondelegate.h')
-rw-r--r--src/modlistversiondelegate.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/modlistversiondelegate.h b/src/modlistversiondelegate.h
new file mode 100644
index 00000000..8a51e9b4
--- /dev/null
+++ b/src/modlistversiondelegate.h
@@ -0,0 +1,21 @@
+#ifndef MODLISTVERSIONDELEGATE_H
+#define MODLISTVERSIONDELEGATE_H
+
+#include <QStyledItemDelegate>
+
+class ModListView;
+
+class ModListVersionDelegate : public QItemDelegate
+{
+public:
+ ModListVersionDelegate(ModListView* view);
+
+ void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override;
+
+
+private:
+
+ ModListView* m_view;
+};
+
+#endif