diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-27 15:20:02 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-27 15:20:02 -0400 |
| commit | 51d664d76ce6b611e7a7585b209bad9d68fe65d7 (patch) | |
| tree | bfb235aab1f5c7b5cd6a8622739a166ad5f1c4fa /src/icondelegate.h | |
| parent | 5d74bd3789515a3e04e54267f1cdfe8f5397f6df (diff) | |
moved color stuff to ColorTable, now shows sample text and icons
Diffstat (limited to 'src/icondelegate.h')
| -rw-r--r-- | src/icondelegate.h | 18 |
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
|
