diff options
Diffstat (limited to 'src/kitemviews/kfileitemlistwidget.h')
| -rw-r--r-- | src/kitemviews/kfileitemlistwidget.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/kitemviews/kfileitemlistwidget.h b/src/kitemviews/kfileitemlistwidget.h index a16e75a8e..50e746fad 100644 --- a/src/kitemviews/kfileitemlistwidget.h +++ b/src/kitemviews/kfileitemlistwidget.h @@ -53,6 +53,18 @@ public: virtual QRectF expansionToggleRect() const; protected: + /** + * Invalidates the cache which results in calling KFileItemListWidget::refreshCache() as + * soon as the item need to gets repainted. + */ + void invalidateCache(); + + /** + * Is called if the cache got invalidated by KFileItemListWidget::invalidateCache(). + * The default implementation is empty. + */ + virtual void refreshCache(); + void setTextColor(const QColor& color); QColor textColor() const; @@ -80,7 +92,7 @@ private: TextIdCount // Mandatory last entry }; - void updateCache(); + void triggerCacheRefreshing(); void updateExpansionArea(); void updatePixmapCache(); |
