summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-02-15 15:44:52 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-02-15 15:44:52 +0100
commit39ff47469cdc4a7df148368ed60470dc042f677e (patch)
tree15df18bf29bff66b15ad16468308766d012ba5a3 /src/mainview.cpp
parentMerge branch 'master' into mainwindow (diff)
downloadrekonq-39ff47469cdc4a7df148368ed60470dc042f677e.tar.xz
{Browser,}Application. Again..
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index acef1998..a3030748 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -25,7 +25,7 @@
// Local Includes
#include "tabbar.h"
-#include "browserapplication.h"
+#include "application.h"
#include "mainwindow.h"
#include "history.h"
#include "urlbar.h"
@@ -310,7 +310,7 @@ WebView *MainView::newTab(bool makeCurrent)
if (!m_lineEditCompleter && count() > 0)
{
HistoryCompletionModel *completionModel = new HistoryCompletionModel(this);
- completionModel->setSourceModel(BrowserApplication::historyManager()->historyFilterModel());
+ completionModel->setSourceModel(Application::historyManager()->historyFilterModel());
m_lineEditCompleter = new QCompleter(completionModel, this);
// Should this be in Qt by default?
QAbstractItemView *popup = m_lineEditCompleter->popup();
@@ -492,7 +492,7 @@ void MainView::webViewIconChanged()
int index = webViewIndex(webView);
if (-1 != index)
{
- QIcon icon = BrowserApplication::instance()->icon(webView->url());
+ QIcon icon = Application::instance()->icon(webView->url());
setTabIcon(index, icon);
}
}
@@ -507,7 +507,7 @@ void MainView::webViewTitleChanged(const QString &title)
}
if (currentIndex() == index)
emit setCurrentTitle(title);
- BrowserApplication::historyManager()->updateHistoryItem(webView->url(), title);
+ Application::historyManager()->updateHistoryItem(webView->url(), title);
}
@@ -529,7 +529,7 @@ void MainView::aboutToShowRecentTabsMenu()
{
KAction *action = new KAction(m_recentlyClosedTabsMenu);
action->setData(m_recentlyClosedTabs.at(i));
- QIcon icon = BrowserApplication::instance()->icon(m_recentlyClosedTabs.at(i));
+ QIcon icon = Application::instance()->icon(m_recentlyClosedTabs.at(i));
action->setIcon(icon);
action->setText( m_recentlyClosedTabs.at(i).prettyUrl() );
m_recentlyClosedTabsMenu->addAction(action);