┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-11-19 20:09:51 +0000
committerPeter Penz <[email protected]>2008-11-19 20:09:51 +0000
commitf542da84a27e11f58405da729e952987d16f151d (patch)
tree64d1252ea3d2eb2670443c59599c816ddfcbb6fc /src/dolphinmainwindow.cpp
parent11289b4fc3efbc074b668d4516cd896f8ade9761 (diff)
Disable the "quick view" feature: I like the Previewer plasmoid, but I think after a few months of trying to use it there is no need for having a separate menu entry (shortcut: CTRL+Return) in Dolphin: Doing a drag & drop operation to the previewer plasmoid is faster than selecting a file and pressing CTRL+Return (or selecting the menu entry). Using "Space" as shortcut conflicts with the Terminal and is still slower than simply just opening the file...
The i18n() string is still part of the code, so that it could be reactivated during the 4.2 cycle. svn path=/trunk/KDE/kdebase/apps/; revision=886672
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index cf2064482..9fe681462 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -251,8 +251,10 @@ void DolphinMainWindow::slotSelectionChanged(const KFileItemList& selection)
compareFilesAction->setEnabled(false);
}
+#if defined(QUICK_VIEW)
const bool activeViewHasSelection = (activeViewContainer()->view()->selectedItemsCount() > 0);
actionCollection()->action("quick_view")->setEnabled(activeViewHasSelection);
+#endif
m_activeViewContainer->updateStatusBar();
@@ -1047,12 +1049,15 @@ void DolphinMainWindow::setupActions()
compareFiles->setEnabled(false);
connect(compareFiles, SIGNAL(triggered()), this, SLOT(compareFiles()));
+ // disabled Quick View
+#if defined(QUICK_VIEW)
KAction* quickView = actionCollection()->addAction("quick_view");
quickView->setText(i18nc("@action:inmenu Tools", "Quick View"));
quickView->setIcon(KIcon("view-preview"));
quickView->setShortcut(Qt::CTRL + Qt::Key_Return);
quickView->setEnabled(false);
connect(quickView, SIGNAL(triggered()), this, SLOT(quickView()));
+#endif
// setup 'Settings' menu
m_showMenuBar = KStandardAction::showMenubar(this, SLOT(toggleShowMenuBar()), actionCollection());