]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Add Back and Forward actions to menu; add "Reload" action to menu and toolbar.
authorvsr <vsr@opencascade.com>
Fri, 27 Feb 2015 11:52:19 +0000 (14:52 +0300)
committervsr <vsr@opencascade.com>
Fri, 27 Feb 2015 11:52:19 +0000 (14:52 +0300)
src/Qtx/QtxWebBrowser.cxx

index fc705c6e4aa0ce2af56587d92b8dc2ff266222eb..146029464458f8dec7c2fedb373e334d365a5f1b 100644 (file)
@@ -340,6 +340,8 @@ QtxWebBrowser::QtxWebBrowser( ) : QMainWindow( 0 )
   myWebView->pageAction( QWebPage::OpenLinkInNewWindow )->setVisible( false );
   myWebView->pageAction( QWebPage::Back )->setText( tr( "Go Back" ) );
   myWebView->pageAction( QWebPage::Forward )->setText( tr( "Go Forward" ) );
+  myWebView->pageAction( QWebPage::Reload )->setText( tr( "Refresh" ) );
+
   myWebView->page()->setLinkDelegationPolicy( QWebPage::DelegateAllLinks );
 
   myFindPanel = new QtxSearchTool( frame, myWebView,
@@ -353,12 +355,17 @@ QtxWebBrowser::QtxWebBrowser( ) : QMainWindow( 0 )
   QToolBar* toolbar = addToolBar( tr( "Navigation" ) );
   toolbar->addAction( myWebView->pageAction( QWebPage::Back ) );
   toolbar->addAction( myWebView->pageAction( QWebPage::Forward ) );
+  toolbar->addAction( myWebView->pageAction( QWebPage::Reload ) );
 
   QMenu* fileMenu = menuBar()->addMenu( tr( "&File" ) );
   fileMenu->addAction( QPixmap( ":/images/open.png" ), tr( "&Open..." ), 
                       this, SLOT( open() ),
                       QKeySequence( QKeySequence::Open ) );
   fileMenu->addSeparator();
+  fileMenu->addAction( myWebView->pageAction( QWebPage::Back ) );
+  fileMenu->addAction( myWebView->pageAction( QWebPage::Forward ) );
+  fileMenu->addAction( myWebView->pageAction( QWebPage::Reload ) );
+  fileMenu->addSeparator();
   fileMenu->addAction( tr( "&Find in text..." ),
                       myFindPanel, SLOT( find() ),
                       QKeySequence( QKeySequence::Find ) );