]> cloud.milkyroute.net Git - dolphin.git/commitdiff
removed Quick-View code (it has already been disabled before)
authorPeter Penz <peter.penz19@gmail.com>
Sun, 1 Mar 2009 12:23:05 +0000 (12:23 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sun, 1 Mar 2009 12:23:05 +0000 (12:23 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=933591

src/dolphinmainwindow.cpp
src/dolphinmainwindow.h

index 8a7cda1dd2a523947755546fd2f55ea1d0152c10..9e344f1c42abe6b449ef2efa5f1d34d74ef1b8b8 100644 (file)
@@ -269,11 +269,6 @@ 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();
 
     emit selectionChanged(selection);
@@ -737,18 +732,6 @@ void DolphinMainWindow::compareFiles()
     KRun::runCommand(command, "Kompare", "kompare", this);
 }
 
-void DolphinMainWindow::quickView()
-{
-    const KUrl::List urls = activeViewContainer()->view()->selectedUrls();
-    Q_ASSERT(urls.count() > 0);
-
-    QDBusMessage msg = QDBusMessage::createMethodCall("org.kde.plasma", "/Previewer", "", "openFile");
-    foreach (const KUrl& url, urls) {
-        msg.setArguments(QList<QVariant>() << url.prettyUrl());
-        QDBusConnection::sessionBus().send(msg);
-    }
-}
-
 void DolphinMainWindow::toggleShowMenuBar()
 {
     const bool visible = menuBar()->isVisible();
@@ -1154,16 +1137,6 @@ 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());
     KStandardAction::preferences(this, SLOT(editSettings()), actionCollection());
index dd9cc721dcb45f23460080162c8913237e9b714a..ccf433ffe03f0b59d9508e7d44e4b07d693fe34d 100644 (file)
@@ -262,12 +262,6 @@ private slots:
     /** Opens Kompare for 2 selected files. */
     void compareFiles();
 
-    /**
-     * Initiates a preview of the selected files
-     * on the desktop by the Previewer plasmoid.
-     */
-    void quickView();
-
     /**
      * Hides the menu bar if it is visible, makes the menu bar
      * visible if it is hidden.