aboutsummaryrefslogtreecommitdiff
path: root/libs/installer_bsplugins/src/BSPluginList/ConflictIconDelegate.h
blob: 6343328381250f544ef5131079a4e60cee371f70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef BSPLUGINLIST_CONFLICTICONDELEGATE_H
#define BSPLUGINLIST_CONFLICTICONDELEGATE_H

#include "GUI/IconDelegate.h"
#include "PluginListView.h"
#include "TESData/FileInfo.h"

namespace BSPluginList
{

class ConflictIconDelegate final : public GUI::IconDelegate
{
  Q_OBJECT

public:
  explicit ConflictIconDelegate(PluginListView* view);

protected:
  [[nodiscard]] QList<QString> getIcons(const QModelIndex& index) const override;
  [[nodiscard]] int getNumIcons(const QModelIndex& index) const override;

private:
  const PluginListView* m_View;
};

}  // namespace BSPluginList

#endif  // BSPLUGINLIST_CONFLICTICONDELEGATE_H