diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-15 12:37:14 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-15 12:37:14 +0200 |
commit | a25e22d7b195877666237007665ce20e1358753b (patch) | |
tree | 15739fbb10cb3fb6123c46d06be8ad4a965c9872 /src/homepage.cpp | |
parent | Initial newtab page settings implementation (diff) | |
download | rekonq-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/homepage.cpp')
-rw-r--r-- | src/homepage.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/homepage.cpp b/src/homepage.cpp index 1f759108..52668036 100644 --- a/src/homepage.cpp +++ b/src/homepage.cpp @@ -97,7 +97,15 @@ QString HomePage::speedDial() { QString fileName = QString("thumb") + QString::number(i) + QString(".png"); QString path = KStandardDirs::locateLocal("cache", QString("thumbs/") + fileName, true); - + if( !QFile::exists(path) ) + { + kDebug() << "websnap" << i << "========================================================="; + WebSnap *ws = new WebSnap(urls.at(i), fileName); + + // we need polish being in an extant object!! + connect(ws, SIGNAL(finished()), Application::instance()->mainWindow()->mainView(), SLOT(polish())); + } + speed += "<div class=\"thumbnail\">"; speed += "<a href=\"" + urls.at(i) + "\">"; speed += "<img src=\"" + path + "\" width=\"200\" alt=\"" + names.at(i) + "\" />"; @@ -173,4 +181,4 @@ QString HomePage::fillRecentHistory() return history; -}
\ No newline at end of file +} |