From 0397658b81ce371047d9ce6979aa37d8112f1a2c Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 14 Feb 2012 18:04:47 +0100 Subject: Details view: Fix indicator-branches Up to now no indicator-branches have been drawn when showing a tree. The patch fixes this so that that the style-dependent branches are drawn. The main part of the patch is the implementation of KItemListView::updateSiblingsInformation(). Most of the other changes are related due to an internal renaming of the expansionsLevel-role to expandedParentsCount and some related cleanups. BUG: 290276 FIXED-IN: 4.8.1 --- src/kitemviews/kfileitemlistwidget.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/kitemviews/kfileitemlistwidget.h') diff --git a/src/kitemviews/kfileitemlistwidget.h b/src/kitemviews/kfileitemlistwidget.h index 4a44a8468..afb0f0171 100644 --- a/src/kitemviews/kfileitemlistwidget.h +++ b/src/kitemviews/kfileitemlistwidget.h @@ -86,6 +86,7 @@ protected: virtual void styleOptionChanged(const KItemListStyleOption& current, const KItemListStyleOption& previous); virtual void hoveredChanged(bool hovered); virtual void selectedChanged(bool selected); + virtual void siblingsInformationChanged(const QBitArray& current, const QBitArray& previous); virtual void resizeEvent(QGraphicsSceneResizeEvent* event); virtual void showEvent(QShowEvent* event); virtual void hideEvent(QHideEvent* event); @@ -119,6 +120,7 @@ private: void updateAdditionalInfoTextColor(); void drawPixmap(QPainter* painter, const QPixmap& pixmap); + void drawSiblingsInformation(QPainter* painter); static QPixmap pixmapForIcon(const QString& name, int size); static TextId roleTextId(const QByteArray& role); -- cgit v1.3.1