summaryrefslogtreecommitdiff
path: root/src/icondelegate.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-04 06:30:15 -0400
committerGitHub <noreply@github.com>2019-10-04 06:30:15 -0400
commit2fe50f2ff366ea850eb70a85c6ea7d6c936bf08a (patch)
tree77041dd84568817e0e359381e7fb78f6a1f2dd2a /src/icondelegate.h
parente6a47bf8b70be2c480f77c68c08480a33e71dce3 (diff)
parent239cfbe6854f727b5dd3e6922cacc17587361cf5 (diff)
Merge pull request #842 from isanae/dialog-settings
Dialog settings
Diffstat (limited to 'src/icondelegate.h')
-rw-r--r--src/icondelegate.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/icondelegate.h b/src/icondelegate.h
index 39694481..bac71a62 100644
--- a/src/icondelegate.h
+++ b/src/icondelegate.h
@@ -27,25 +27,19 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
class IconDelegate : public QStyledItemDelegate
{
- Q_OBJECT
-public:
+ Q_OBJECT;
+public:
explicit IconDelegate(QObject *parent = 0);
-
virtual void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
-signals:
-
-public slots:
-
-private:
+ static void paintIcons(
+ QPainter *painter, const QStyleOptionViewItem &option,
+ const QModelIndex &index, const QList<QString>& icons);
+protected:
virtual QList<QString> getIcons(const QModelIndex &index) const = 0;
virtual size_t getNumIcons(const QModelIndex &index) const = 0;
-
-
-private:
-
};
#endif // ICONDELEGATE_H