From: Peter Penz Date: Sun, 1 Mar 2009 12:23:05 +0000 (+0000) Subject: removed Quick-View code (it has already been disabled before) X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/7a48b5fec13060a422961faa53d79d765b44fa88?ds=inline removed Quick-View code (it has already been disabled before) svn path=/trunk/KDE/kdebase/apps/; revision=933591 --- diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 8a7cda1dd..9e344f1c4 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -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() << 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()); diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index dd9cc721d..ccf433ffe 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -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.