aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 68afa40..75f1da3 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -80,10 +80,8 @@ MainWindow::MainWindow(QUrl defaultUrl, QWidget *parent) :
forwardButton = new NavigationButton(NavigationButton::ForwardButton, this);
- QToolButton *reloadButton = new QToolButton(this);
- reloadButton->setIcon(style()->standardIcon(QStyle::SP_BrowserReload));
- connect(reloadButton, SIGNAL(clicked()), tabBar->signalMapper(), SLOT(map()));
- tabBar->signalMapper()->setMapping(reloadButton, WebViewTabBar::Reload);
+ reloadButton = new NavigationButton(NavigationButton::ReloadButton, this);
+
QToolButton *homepageButton = new QToolButton(this);
homepageButton->setIcon(style()->standardIcon(QStyle::SP_DirHomeIcon));
connect(homepageButton, SIGNAL(clicked()), tabBar->signalMapper(), SLOT(map()));
@@ -241,6 +239,7 @@ void MainWindow::handleTabChanged(WebView *view)
// connect signals
backButton->setView(view);
forwardButton->setView(view);
+ reloadButton->setView(view);
m_addressBar->setWebView(view);
connect(view, SIGNAL(titleChanged(QString)), this, SLOT(handleTitleUpdated(QString)));
connect(view, SIGNAL(linkHovered(QString)), ui->statusBar, SLOT(showMessage(QString)));