diff options
Diffstat (limited to 'src/dolphinfileitemdelegate.h')
| -rw-r--r-- | src/dolphinfileitemdelegate.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dolphinfileitemdelegate.h b/src/dolphinfileitemdelegate.h index 2f8d3c35f..bd6bfdf07 100644 --- a/src/dolphinfileitemdelegate.h +++ b/src/dolphinfileitemdelegate.h @@ -66,10 +66,12 @@ private: const DolphinModel* dolphinModel, const QModelIndex& index); - static QPixmap emblemForState(RevisionControlPlugin::RevisionState state, const QSize& size); + QPixmap emblemForState(RevisionControlPlugin::RevisionState state, const QSize& size) const; private: bool m_hasMinimizedNameColumn; + mutable QSize m_cachedSize; + mutable QPixmap m_cachedEmblems[RevisionControlPlugin::ConflictingRevision + 1]; }; inline void DolphinFileItemDelegate::setMinimizedNameColumn(bool minimized) |
