mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
removed Quick-View code (it has already been disabled before)
svn path=/trunk/KDE/kdebase/apps/; revision=933591
This commit is contained in:
parent
3b98165a3f
commit
7a48b5fec1
2 changed files with 0 additions and 33 deletions
|
@ -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());
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue