From 0e4a3b6077a276767f76bf52b5c09036b3d89114 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 20 Jun 2009 19:25:43 +0200 Subject: Finally fixed F5 shortcut --- src/mainview.h | 2 -- src/mainwindow.cpp | 6 +++++- src/mainwindow.h | 2 -- src/rekonqui.rc | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/mainview.h b/src/mainview.h index 9ee2f12a..36fadfb4 100644 --- a/src/mainview.h +++ b/src/mainview.h @@ -133,8 +133,6 @@ public slots: private slots: void slotCurrentChanged(int index); -// void aboutToShow/*Rec*/entTabsMenu(); -// void aboutToShowRecentTriggeredAction(QAction *action); // need QAction! void webViewLoadStarted(); void webViewLoadProgress(int progress); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a555df9a..2e2cc6cd 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -251,7 +251,6 @@ void MainWindow::setupActions() // stop reload Action m_stopReloadAction = new KAction(KIcon("view-refresh"), i18n("Reload"), this); - m_stopReloadAction->setShortcut(KShortcut(Qt::Key_F5)); actionCollection()->addAction(QLatin1String("stop_reload") , m_stopReloadAction); m_stopReloadAction->setShortcutConfigurable(false); @@ -426,6 +425,11 @@ void MainWindow::slotOpenLocation() void MainWindow::slotFileSaveAs() { + QWebFrame* frame = m_view->currentWebView()->page()->currentFrame(); + + QString title = frame->title(); + QString content = frame->toPlainText(); + KUrl srcUrl = currentTab()->url(); // FIXME implement download file } diff --git a/src/mainwindow.h b/src/mainwindow.h index 0d17ef4d..d9180b69 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -89,11 +89,9 @@ private slots: void slotUpdateActions(); void slotUpdateWindowTitle(const QString &title = QString()); void slotOpenLocation(); -// void slotAboutToShowBackMenu(); void geometryChangeRequested(const QRect &geometry); // history related -// void slotOpenActionUrl(QAction *action); void slotOpenPrevious(); void slotOpenNext(); diff --git a/src/rekonqui.rc b/src/rekonqui.rc index 2a366229..6269df3b 100644 --- a/src/rekonqui.rc +++ b/src/rekonqui.rc @@ -36,7 +36,7 @@ &View - + -- cgit v1.2.1