summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-10 14:47:39 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-10 14:47:39 +0100
commitc7fa09a7b96e239ff6e7349c9d90e7409d7bbcb3 (patch)
tree9715e1f86daba6e14ec74625ae10cd85c23b2359 /src/mainwindow.cpp
parentSafer Application::mainWindow() call. No 0 return.. (diff)
downloadrekonq-c7fa09a7b96e239ff6e7349c9d90e7409d7bbcb3.tar.xz
fixing new mainWindow() behaviour, porting functions calling it
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 194b141a..4d9cc89d 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -276,7 +276,7 @@ void MainWindow::setupActions()
shortcutFullScreenList << KStandardShortcut::fullScreen() << QKeySequence( Qt::Key_F11 );
a->setShortcuts( shortcutFullScreenList );
- KStandardAction::home(this, SLOT(slotHome()), actionCollection());
+ KStandardAction::home(this, SLOT(homePage()), actionCollection());
KStandardAction::preferences(this, SLOT(slotPreferences()), actionCollection());
a = KStandardAction::redisplay(m_view, SLOT(slotWebReload()), actionCollection());
@@ -462,6 +462,7 @@ void MainWindow::setupSidePanel()
void MainWindow::slotUpdateConfiguration()
{
// ============== General ==================
+ kDebug() << "update conf";
m_view->updateTabBar();
// =========== Fonts ==============
@@ -782,7 +783,7 @@ void MainWindow::slotViewPageSource()
}
-void MainWindow::slotHome()
+void MainWindow::homePage()
{
currentTab()->load( QUrl(ReKonfig::homePage()) );
}
@@ -1116,7 +1117,7 @@ void MainWindow::slotOpenActionUrl(QAction *action)
}
-bool MainWindow::homePage(const KUrl &url)
+bool MainWindow::newTabPage(const KUrl &url)
{
if ( url == KUrl("rekonq:closedTabs")
|| url == KUrl("rekonq:history")
@@ -1127,8 +1128,9 @@ bool MainWindow::homePage(const KUrl &url)
{
kDebug() << "loading home: " << url;
WebView *w = currentTab();
- HomePage p(w);
- w->setHtml( p.rekonqHomePage(url), url);
+ HomePage p;
+ QString html = p.rekonqHomePage(url);
+ w->setHtml(html, url);
return true;
}
return false;