]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Disable the "quick view" feature: I like the Previewer plasmoid, but I think after...
authorPeter Penz <peter.penz19@gmail.com>
Wed, 19 Nov 2008 20:09:51 +0000 (20:09 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Wed, 19 Nov 2008 20:09:51 +0000 (20:09 +0000)
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

src/dolphinmainwindow.cpp

index cf20644827b7a936bf94f3600822e31d54168a78..9fe6814623573bfc23fbc5490005de9134ddc19f 100644 (file)
@@ -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());