summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-11-19 01:32:04 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-11-19 01:32:04 +0100
commitfe21365ffafb922a6b24959f3d1096e4c6171427 (patch)
tree7380e1486a65ab57e39a663442876ff1912715d3 /src/mainview.cpp
parentAPI clean up (diff)
downloadrekonq-fe21365ffafb922a6b24959f3d1096e4c6171427.tar.xz
Print && Find actions for the parts :)
- handle print & find with different signals in mainwindow - show right tab title (moving titleChanged signal from view to tab)
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index 26248da5..903ec12b 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -314,7 +314,7 @@ WebTab *MainView::newWebTab(bool focused)
// connecting webview with mainview
connect(tab->view(), SIGNAL(loadStarted()), this, SLOT(webViewLoadStarted()));
connect(tab->view(), SIGNAL(loadFinished(bool)), this, SLOT(webViewLoadFinished(bool)));
- connect(tab->view(), SIGNAL(titleChanged(const QString &)), this, SLOT(webViewTitleChanged(const QString &)));
+ connect(tab, SIGNAL(titleChanged(const QString &)), this, SLOT(webViewTitleChanged(const QString &)));
connect(tab->view(), SIGNAL(urlChanged(const QUrl &)), this, SLOT(webViewUrlChanged(const QUrl &)));
connect(tab->view(), SIGNAL(iconChanged()), this, SLOT(webViewIconChanged()));
@@ -584,8 +584,8 @@ void MainView::webViewTitleChanged(const QString &title)
QString tabTitle = viewTitle;
tabTitle.replace('&', "&&");
- WebView *view = qobject_cast<WebView *>(sender());
- int index = indexOf(view->parentWidget());
+ WebTab *tab = qobject_cast<WebTab *>(sender());
+ int index = indexOf(tab);
if (-1 != index)
{
setTabText(index, tabTitle);
@@ -594,7 +594,7 @@ void MainView::webViewTitleChanged(const QString &title)
{
emit currentTitle(viewTitle);
}
- Application::historyManager()->updateHistoryEntry(view->url(), tabTitle);
+ Application::historyManager()->updateHistoryEntry(tab->url(), tabTitle);
}