summaryrefslogtreecommitdiff
path: root/src/homepage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-15 12:58:56 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-15 12:58:56 +0200
commit32d0da0ba3c17281c4a69ee84b42e98246eb3c5d (patch)
tree4f0b2e33e16bcb5e77db737d59720b7650bcb0d2 /src/homepage.cpp
parentFixing state. Rekonq is not usable now, but this seems a good tech preview. (diff)
downloadrekonq-32d0da0ba3c17281c4a69ee84b42e98246eb3c5d.tar.xz
First adjustments and code about it (it's really simple, anyway..Qt rocks!!!)
Diffstat (limited to 'src/homepage.cpp')
-rw-r--r--src/homepage.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/homepage.cpp b/src/homepage.cpp
index 52668036..0cd966f4 100644
--- a/src/homepage.cpp
+++ b/src/homepage.cpp
@@ -95,20 +95,14 @@ QString HomePage::speedDial()
QString speed = QString();
for(int i = 0; i< urls.count(); ++i)
{
- 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()));
- }
-
+ QString pageName = QString("page") + QString::number(i);
+
speed += "<div class=\"thumbnail\">";
speed += "<a href=\"" + urls.at(i) + "\">";
- speed += "<img src=\"" + path + "\" width=\"200\" alt=\"" + names.at(i) + "\" />";
+ speed += "<object type=\"application/x-qt-plugin\"; classId=\"WebView\" name=\"" + pageName + "\" width=\"200\">";
+ speed += "<param name=\"load\" value=\"" + urls.at(i) + "\">";
+ speed += "</object>";
+// speed += "<img src=\"" + path + "\" width=\"200\" alt=\"" + names.at(i) + "\" />";
speed += "<br />";
speed += names.at(i) + "</a></div>";
}