┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.cpp
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2008-10-13 21:54:03 +0000
committerDavid Faure <[email protected]>2008-10-13 21:54:03 +0000
commit76fa5aec6b7af0740876db86c2eb0ef7f6270486 (patch)
tree7fe9f39752ba70885a1b186333b7b5d9e1d35188 /src/dolphinview.cpp
parent3b77f108ae1d08e663d06394484c6f0c3100a12a (diff)
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: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=871109
Diffstat (limited to 'src/dolphinview.cpp')
-rw-r--r--src/dolphinview.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index 25d0cc199..daadf7730 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -1310,7 +1310,7 @@ void DolphinView::pasteToUrl(const KUrl& url)
}
void DolphinView::updateZoomLevel(int oldZoomLevel)
-{
+{
const int newZoomLevel = ZoomLevelInfo::zoomLevelForIconSize(itemView()->iconSize());
if (oldZoomLevel != newZoomLevel) {
m_controller->setZoomLevel(newZoomLevel);
@@ -1321,10 +1321,15 @@ void DolphinView::updateZoomLevel(int oldZoomLevel)
KUrl::List DolphinView::simplifiedSelectedUrls() const
{
KUrl::List list = selectedUrls();
- if ((m_detailsView != 0) && m_detailsView->itemsExpandable()) {
+ if (itemsExpandable() ) {
list = KonqOperations::simplifiedUrlList(list);
}
return list;
}
+bool DolphinView::itemsExpandable() const
+{
+ return (m_detailsView != 0) && m_detailsView->itemsExpandable();
+}
+
#include "dolphinview.moc"