diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-03-10 17:38:27 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-03-10 17:38:27 +0100 |
commit | 73fc9c79cff979e9023df0b1a77848c67b590681 (patch) | |
tree | 7c8be387b504eccf35e4e3422b39a78d47354e7d /gui/groupview/InstanceDelegate.h | |
parent | 737169d1d3ac62a7db99d51e892289aee8c1d3a3 (diff) | |
download | MultiMC-73fc9c79cff979e9023df0b1a77848c67b590681.tar MultiMC-73fc9c79cff979e9023df0b1a77848c67b590681.tar.gz MultiMC-73fc9c79cff979e9023df0b1a77848c67b590681.tar.lz MultiMC-73fc9c79cff979e9023df0b1a77848c67b590681.tar.xz MultiMC-73fc9c79cff979e9023df0b1a77848c67b590681.zip |
Instance badges. Some easter eggs and one for broken so far.
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; }; |