From 475f8b1261a6ea106ca9dd90b625ea95fe63a4c7 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 9 Mar 2012 16:12:00 +0100 Subject: Details view: Allow to turn off expandable folders like in Dolphin 1.7 The option for turning off expandable folders has been removed with the new view-engine. Due to several requests this option has been readded again. As for 4.8.x no new user-interface strings may be introduced, the line ExpandableFolders=false must be manually added below the section "[DetailsMode]" in the file ~/.kde/share/config/dolphinrc if the expandable-folders feature should be disabled. Thanks to H.H. "cyberbeat" for the initial patch! BUG: 289090 FIXED-IN: 4.8.2 --- src/kitemviews/kfileitemlistwidget.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/kitemviews/kfileitemlistwidget.h') diff --git a/src/kitemviews/kfileitemlistwidget.h b/src/kitemviews/kfileitemlistwidget.h index 2feeca810..495831335 100644 --- a/src/kitemviews/kfileitemlistwidget.h +++ b/src/kitemviews/kfileitemlistwidget.h @@ -46,6 +46,9 @@ public: void setLayout(Layout layout); Layout layout() const; + void setSupportsItemExpanding(bool supportsItemExpanding); + bool supportsItemExpanding() const; + virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); virtual QRectF iconRect() const; @@ -131,6 +134,7 @@ private: bool m_isCut; bool m_isHidden; bool m_isExpandable; + bool m_supportsItemExpanding; bool m_dirtyLayout; bool m_dirtyContent; -- cgit v1.3.1