summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp35
1 files changed, 9 insertions, 26 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 3e0d71fa..d99ccd46 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -138,32 +138,15 @@ void MainWindow::setupActions()
KStandardAction::home( this, SLOT( slotHome() ), actionCollection() );
KStandardAction::preferences( this, SLOT( slotPreferences() ), actionCollection() );
- a = KStandardAction::redisplay( this, 0, actionCollection() );
- m_tabWidget->addWebAction( a, QWebPage::Reload );
-
- a = KStandardAction::back( this, 0, actionCollection() );
- m_tabWidget->addWebAction( a, QWebPage::Back );
-
- a = KStandardAction::forward( this, 0, actionCollection() );
- m_tabWidget->addWebAction( a, QWebPage::Forward );
-
- a = KStandardAction::undo( this , 0 , actionCollection() );
- m_tabWidget->addWebAction( a , QWebPage::Undo );
-
- a = KStandardAction::redo( this , 0 , actionCollection() );
- m_tabWidget->addWebAction( a, QWebPage::Redo );
-
- a = KStandardAction::cut( this , 0 , actionCollection() );
- m_tabWidget->addWebAction( a, QWebPage::Cut );
-
- a = KStandardAction::copy( this , 0 , actionCollection() );
- m_tabWidget->addWebAction( a, QWebPage::Copy );
-
- a = KStandardAction::paste( this , 0 , actionCollection() );
- m_tabWidget->addWebAction( a, QWebPage::Paste );
-
- a = KStandardAction::selectAll( this , 0 , actionCollection() );
- m_tabWidget->addWebAction( a, QWebPage::SelectEndOfDocument );
+ m_tabWidget->addWebAction( KStandardAction::redisplay( this, 0, actionCollection() ) , QWebPage::Reload );
+ m_tabWidget->addWebAction( KStandardAction::back( this, 0, actionCollection() ) , QWebPage::Back );
+ m_tabWidget->addWebAction( KStandardAction::forward( this, 0, actionCollection() ) , QWebPage::Forward );
+ m_tabWidget->addWebAction( KStandardAction::undo( this , 0 , actionCollection() ) , QWebPage::Undo );
+ m_tabWidget->addWebAction( KStandardAction::redo( this , 0 , actionCollection() ) , QWebPage::Redo );
+ m_tabWidget->addWebAction( KStandardAction::cut( this , 0 , actionCollection() ) , QWebPage::Cut );
+ m_tabWidget->addWebAction( KStandardAction::copy( this , 0 , actionCollection() ) , QWebPage::Copy );
+ m_tabWidget->addWebAction( KStandardAction::paste( this , 0 , actionCollection() ) , QWebPage::Paste );
+ m_tabWidget->addWebAction( KStandardAction::selectAll( this , 0 , actionCollection() ) , QWebPage::SelectEndOfDocument );
// stop reload Action
m_stopReload = new KAction( KIcon("view-refresh"), i18n("reload"), this );