From 76fa5aec6b7af0740876db86c2eb0ef7f6270486 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 13 Oct 2008 21:54:03 +0000 Subject: Konq popupmenu fix: we don't show the "Create new" submenu over subdirs in an iconview because you wouldn't see the just-created file/dir, but let's show it in the case of the hiearchical details view ("folders expandable" option), since you can indeed see the new file/dir in that case. Peter: problem solved with itemsExpandable(). CCMAIL: peter.penz@gmx.at svn path=/trunk/KDE/kdebase/apps/; revision=871109 --- src/dolphinview.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 910e324ea..d2d97aec2 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -334,6 +334,12 @@ public: void setTabsForFilesEnabled(bool tabsForFiles); bool isTabsForFilesEnabled() const; + /** + * Returns true if the current view allows folders to be expanded, + * i.e. presents a hierarchical view to the user. + */ + bool itemsExpandable() const; + public slots: /** * Changes the directory to \a url. If the current directory is equal to -- cgit v1.3