From a1469b0dc9d8f7fa8a64026e9f75aae77e4daecb Mon Sep 17 00:00:00 2001 From: Lionel Chauvin Date: Sun, 23 Aug 2009 11:52:21 +0200 Subject: Replace "Print preview" by "Print" in the tool menu Remove "Print" --- src/mainwindow.cpp | 15 +++------------ src/mainwindow.h | 1 - 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f07ce198..29669178 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -238,9 +238,8 @@ void MainWindow::setupActions() // Standard Actions KStandardAction::open(this, SLOT(slotFileOpen()), actionCollection()); - KStandardAction::saveAs(this, SLOT(slotFileSaveAs()), actionCollection()); - KStandardAction::printPreview(this, SLOT(slotFilePrintPreview()), actionCollection()); - KStandardAction::print(this, SLOT(slotFilePrint()), actionCollection()); + KStandardAction::saveAs(this, SLOT(slotFileSaveAs()), actionCollection()); + KStandardAction::print(this, SLOT(slotFilePrintPreview()), actionCollection()); KStandardAction::quit(this , SLOT(close()), actionCollection()); KStandardAction::find(m_findBar, SLOT(show()) , actionCollection()); KStandardAction::findNext(this, SLOT(slotFindNext()) , actionCollection()); @@ -355,7 +354,7 @@ void MainWindow::setupTools() toolsMenu->setDelayed(false); toolsMenu->addAction(actionByName(KStandardAction::name(KStandardAction::SaveAs))); - toolsMenu->addAction(actionByName(KStandardAction::name(KStandardAction::PrintPreview))); + toolsMenu->addAction(actionByName(KStandardAction::name(KStandardAction::Print))); toolsMenu->addAction(actionByName(KStandardAction::name(KStandardAction::Find))); KActionMenu *fontMenu = new KActionMenu(KIcon("page-zoom"), i18n("Zoom"), this); @@ -574,14 +573,6 @@ void MainWindow::slotFilePrintPreview() } -void MainWindow::slotFilePrint() -{ - if (!currentTab()) - return; - printRequested(currentTab()->page()->mainFrame()); -} - - void MainWindow::printRequested(QWebFrame *frame) { QPrinter printer; diff --git a/src/mainwindow.h b/src/mainwindow.h index cc32dd68..854745df 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -115,7 +115,6 @@ private slots: // File Menu slots void slotFileOpen(); void slotFilePrintPreview(); - void slotFilePrint(); void slotFileSaveAs(); void printRequested(QWebFrame *frame); -- cgit v1.2.1