summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-23 10:02:49 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-23 10:02:49 +0200
commitf029968d91dc9342d99e55dbf94e91fafcaa8dc5 (patch)
tree7f2e1fcd563f23676ef4071af546378fd06527c4
parentUPdated RELEASE file instructions (diff)
downloadrekonq-f029968d91dc9342d99e55dbf94e91fafcaa8dc5.tar.xz
Removed some menu related actions (cloned in the context menus)
-rw-r--r--src/mainview.cpp56
-rw-r--r--src/mainview.h8
-rw-r--r--src/mainwindow.cpp7
3 files changed, 1 insertions, 70 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 9b3dfc21..3eca9ef5 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -217,62 +217,6 @@ void MainView::slotWebStop()
}
-void MainView::slotWebBack()
-{
- WebView *webView = currentWebView();
- QAction *action = webView->page()->action(QWebPage::Back);
- action->trigger();
-}
-
-
-void MainView::slotWebForward()
-{
- WebView *webView = currentWebView();
- QAction *action = webView->page()->action(QWebPage::Forward);
- action->trigger();
-}
-
-
-void MainView::slotWebUndo()
-{
- WebView *webView = currentWebView();
- QAction *action = webView->page()->action(QWebPage::Undo);
- action->trigger();
-}
-
-
-void MainView::slotWebRedo()
-{
- WebView *webView = currentWebView();
- QAction *action = webView->page()->action(QWebPage::Redo);
- action->trigger();
-}
-
-
-void MainView::slotWebCut()
-{
- WebView *webView = currentWebView();
- QAction *action = webView->page()->action(QWebPage::Cut);
- action->trigger();
-}
-
-
-void MainView::slotWebCopy()
-{
- WebView *webView = currentWebView();
- QAction *action = webView->page()->action(QWebPage::Copy);
- action->trigger();
-}
-
-
-void MainView::slotWebPaste()
-{
- WebView *webView = currentWebView();
- QAction *action = webView->page()->action(QWebPage::Paste);
- action->trigger();
-}
-
-
void MainView::clear()
{
/// TODO What exactly do we need to clear here?
diff --git a/src/mainview.h b/src/mainview.h
index 82655475..9a0b3412 100644
--- a/src/mainview.h
+++ b/src/mainview.h
@@ -115,13 +115,7 @@ public slots:
// WEB slot actions
void slotWebReload();
void slotWebStop();
- void slotWebBack();
- void slotWebForward();
- void slotWebUndo();
- void slotWebRedo();
- void slotWebCut();
- void slotWebCopy();
- void slotWebPaste();
+
private slots:
void slotCurrentChanged(int index);
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 9b377273..f07ce198 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -257,13 +257,6 @@ void MainWindow::setupActions()
// WEB Actions (NO KStandardActions..)
a = KStandardAction::redisplay(m_view, SLOT(slotWebReload()), actionCollection());
a->setText(i18n("Reload"));
-// KStandardAction::back(m_view, SLOT(slotWebBack()), actionCollection());
-// KStandardAction::forward(m_view, SLOT(slotWebForward()), actionCollection());
-// KStandardAction::undo(m_view, SLOT(slotWebUndo()), actionCollection());
-// KStandardAction::redo(m_view, SLOT(slotWebRedo()), actionCollection());
-// KStandardAction::cut(m_view, SLOT(slotWebCut()), actionCollection());
-// KStandardAction::copy(m_view, SLOT(slotWebCopy()), actionCollection());
-// KStandardAction::paste(m_view, SLOT(slotWebPaste()), actionCollection());
a = new KAction(KIcon("process-stop"), i18n("&Stop"), this);
a->setShortcut(KShortcut(Qt::CTRL | Qt::Key_Period));