summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorLionel Chauvin <megabigbug@yahoo.fr>2009-08-23 11:52:21 +0200
committerLionel Chauvin <megabigbug@yahoo.fr>2009-08-23 11:52:21 +0200
commita1469b0dc9d8f7fa8a64026e9f75aae77e4daecb (patch)
tree33c648b5976848a49d11eb17c412ed91480d0963 /src/mainwindow.cpp
parentApplied Lindsay's patch about opening Home Page in new tabs (diff)
downloadrekonq-a1469b0dc9d8f7fa8a64026e9f75aae77e4daecb.tar.xz
Replace "Print preview" by "Print" in the tool menu
Remove "Print"
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp15
1 files changed, 3 insertions, 12 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;