summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-15 12:37:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-15 12:37:14 +0200
commita25e22d7b195877666237007665ce20e1358753b (patch)
tree15739fbb10cb3fb6123c46d06be8ad4a965c9872 /src/mainview.cpp
parentInitial newtab page settings implementation (diff)
downloadrekonq-a25e22d7b195877666237007665ce20e1358753b.tar.xz
Fixing state. Rekonq is not usable now, but this seems a good tech preview.
Anyway, performance is definitely a problem with this method, also loading just the first time. Looking at the other way... :)
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index a40729a3..2a3545b4 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -42,6 +42,7 @@
#include "webview.h"
#include "sessionmanager.h"
#include "homepage.h"
+#include "websnap.h"
// KDE Includes
#include <KUrl>
@@ -299,7 +300,7 @@ void MainView::newTab()
urlBar()->setUrl(KUrl(""));
urlBar()->setFocus();
- HomePage p;
+ HomePage p(w);
switch(ReKonfig::newTabsBehaviour())
{
@@ -593,3 +594,24 @@ KUrl::List MainView::recentlyClosedTabs()
{
return m_recentlyClosedTabs;
}
+
+
+void MainView::polish()
+{
+ static int i = 0;
+ WebSnap *ws = qobject_cast<WebSnap*>(sender());
+ delete ws;
+
+ i++;
+ if(i<9)
+ {
+ WebView *w = currentWebView();
+ HomePage p(w);
+ w->setHtml( p.rekonqHomePage() );
+ kDebug() << "ciao---------------------------------------------____";
+ }
+ else
+ {
+ kDebug() << "EROORORORORORORORORORO";
+ }
+}