summaryrefslogtreecommitdiff
path: root/src/mainwindow.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/mainwindow.cpp
parentMerge branch 'master' into mainwindow (diff)
downloadrekonq-39ff47469cdc4a7df148368ed60470dc042f677e.tar.xz
{Browser,}Application. Again..
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index ecd5e452..ee028abb 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -27,7 +27,7 @@
#include "rekonq.h"
// Local Includes
-#include "browserapplication.h"
+#include "application.h"
#include "settings.h"
#include "history.h"
#include "cookiejar.h"
@@ -319,9 +319,9 @@ void MainWindow::slotUpdateConf()
defaultSettings->setAttribute(QWebSettings::JavascriptEnabled, isJavascriptEnabled);
// load Settings on main classes
- BrowserApplication::networkAccessManager()->loadSettings();
- BrowserApplication::cookieJar()->loadSettings();
- BrowserApplication::historyManager()->loadSettings();
+ Application::networkAccessManager()->loadSettings();
+ Application::cookieJar()->loadSettings();
+ Application::historyManager()->loadSettings();
}
@@ -402,7 +402,7 @@ void MainWindow::slotFileSaveAs()
KUrl srcUrl = currentTab()->url();
QString destPath = KFileDialog::getSaveFileName();
KUrl destUrl = KUrl(destPath);
- BrowserApplication::instance()->downloadUrl( srcUrl, destUrl );
+ Application::instance()->downloadUrl( srcUrl, destUrl );
}
@@ -444,8 +444,8 @@ void MainWindow::slotUpdateWindowTitle(const QString &title)
void MainWindow::slotFileNew()
{
- BrowserApplication::instance()->newMainWindow();
- MainWindow *mw = BrowserApplication::instance()->mainWindow();
+ Application::instance()->newMainWindow();
+ MainWindow *mw = Application::instance()->mainWindow();
mw->slotHome();
}
@@ -520,7 +520,7 @@ void MainWindow::slotPrivateBrowsing()
{
settings->setAttribute(QWebSettings::PrivateBrowsingEnabled, false);
- QList<MainWindow*> windows = BrowserApplication::instance()->mainWindows();
+ QList<MainWindow*> windows = Application::instance()->mainWindows();
for (int i = 0; i < windows.count(); ++i)
{
MainWindow *window = windows.at(i);
@@ -718,7 +718,7 @@ void MainWindow::slotAboutToShowBackMenu()
QWebHistoryItem item = history->backItems(history->count()).at(i);
KAction *action = new KAction(this);
action->setData(-1*(historyCount-i-1));
- QIcon icon = BrowserApplication::instance()->icon(item.url());
+ QIcon icon = Application::instance()->icon(item.url());
action->setIcon(icon);
action->setText(item.title());
m_historyBackMenu->addAction(action);
@@ -734,7 +734,7 @@ void MainWindow::slotAboutToShowBackMenu()
// if (v.canConvert<int>())
// {
// int offset = qvariant_cast<int>(v);
-// QList<MainWindow*> windows = BrowserApplication::instance()->mainWindows();
+// QList<MainWindow*> windows = Application::instance()->mainWindows();
// windows.at(offset)->activateWindow();
// windows.at(offset)->currentTab()->setFocus();
// }