diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-03-19 22:25:36 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-03-19 22:25:36 +0100 |
commit | 26b485d82f03c0191142cf9b660b4ab43962878d (patch) | |
tree | 092364c614f29865fec4bdb6bd158de1c2d4db9a /gui/groupview/InstanceDelegate.h | |
parent | 919dea0de60d058f57a4b9bd1e5f4513a014c693 (diff) | |
parent | ad9b16bd3d6a71b4cdf1763d166bc9cc633e147c (diff) | |
download | MultiMC-26b485d82f03c0191142cf9b660b4ab43962878d.tar MultiMC-26b485d82f03c0191142cf9b660b4ab43962878d.tar.gz MultiMC-26b485d82f03c0191142cf9b660b4ab43962878d.tar.lz MultiMC-26b485d82f03c0191142cf9b660b4ab43962878d.tar.xz MultiMC-26b485d82f03c0191142cf9b660b4ab43962878d.zip |
Merge remote-tracking branch 'origin/feature_badges' into develop
Diffstat (limited to 'gui/groupview/InstanceDelegate.h')
-rw-r--r-- | gui/groupview/InstanceDelegate.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/groupview/InstanceDelegate.h b/gui/groupview/InstanceDelegate.h index de2f429b..9ab44864 100644 --- a/gui/groupview/InstanceDelegate.h +++ b/gui/groupview/InstanceDelegate.h @@ -16,14 +16,20 @@ #pragma once #include <QStyledItemDelegate> +#include <QCache> class ListViewDelegate : public QStyledItemDelegate { public: explicit ListViewDelegate(QObject *parent = 0); + static QPixmap requestPixmap(const QString &key); + protected: void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const; QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; + +private: + static QCache<QString, QPixmap> m_pixmapCache; }; |