┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-03-09 16:12:00 +0100
committerPeter Penz <[email protected]>2012-03-09 16:19:19 +0100
commit475f8b1261a6ea106ca9dd90b625ea95fe63a4c7 (patch)
tree2a90bd16adf04fb8151edc4359323f4fb56ec7e4 /src/kitemviews/kitemlistview.h
parent08a485349f2bd73682ac806b97d3630c3a7dd3fd (diff)
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
Diffstat (limited to 'src/kitemviews/kitemlistview.h')
-rw-r--r--src/kitemviews/kitemlistview.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/src/kitemviews/kitemlistview.h b/src/kitemviews/kitemlistview.h
index b416888eb..8f6e11e38 100644
--- a/src/kitemviews/kitemlistview.h
+++ b/src/kitemviews/kitemlistview.h
@@ -201,15 +201,15 @@ public:
virtual QHash<QByteArray, QSizeF> visibleRolesSizes(const KItemRangeList& itemRanges) const;
/**
- * @return True if the view supports the expanding of items. Per default
- * false is returned. If expanding of items is supported
- * (see setSupportsItemExpanding()),the methods
- * KItemModelBase::setExpanded(), KItemModelBase::isExpanded(),
- * KItemModelBase::isExpandable() and KItemModelBase::expandedParentsCount()
- * must be reimplemented. The view-implementation
- * has to take care itself how to visually represent the expanded items provided
- * by the model.
+ * If set to true, items having child-items can be expanded to show the child-items as
+ * part of the view. Per default the expanding of items is is disabled. If expanding of
+ * items is enabled, the methods KItemModelBase::setExpanded(), KItemModelBase::isExpanded(),
+ * KItemModelBase::isExpandable() and KItemModelBase::expandedParentsCount()
+ * must be reimplemented. The view-implementation
+ * has to take care itself how to visually represent the expanded items provided
+ * by the model.
*/
+ void setSupportsItemExpanding(bool supportsExpanding);
bool supportsItemExpanding() const;
/**
@@ -327,6 +327,7 @@ protected:
virtual void onScrollOffsetChanged(qreal current, qreal previous);
virtual void onVisibleRolesChanged(const QList<QByteArray>& current, const QList<QByteArray>& previous);
virtual void onStyleOptionChanged(const KItemListStyleOption& current, const KItemListStyleOption& previous);
+ virtual void onSupportsItemExpandingChanged(bool supportsExpanding);
virtual void onTransactionBegin();
virtual void onTransactionEnd();
@@ -341,13 +342,6 @@ protected:
QList<KItemListWidget*> visibleItemListWidgets() const;
- /**
- * Must be called by the derived class if it supports the expanding
- * of items.
- * @see supportsItemExpanding()
- */
- void setSupportsItemExpanding(bool supportsExpanding);
-
protected slots:
virtual void slotItemsInserted(const KItemRangeList& itemRanges);
virtual void slotItemsRemoved(const KItemRangeList& itemRanges);