summaryrefslogtreecommitdiff
path: root/src/homepage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-17 02:39:24 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-19 11:41:45 +0200
commit4d8d9d6e4eb149b46af315269e9578eb6bbfc241 (patch)
tree363308f6dc37c843b371ca95cde40b05e0033ecf /src/homepage.cpp
parentMerge commit 'refs/merge-requests/1842' of git://gitorious.org/rekonq/mainlin... (diff)
downloadrekonq-4d8d9d6e4eb149b46af315269e9578eb6bbfc241.tar.xz
STEP 1
creating a new Preview Image Object, based on QWidget and containing the pixmap AND the url
Diffstat (limited to 'src/homepage.cpp')
-rw-r--r--src/homepage.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/homepage.cpp b/src/homepage.cpp
index fabb2a91..7d1e2671 100644
--- a/src/homepage.cpp
+++ b/src/homepage.cpp
@@ -123,18 +123,19 @@ QString HomePage::fillFavorites()
}
speed += "<div class=\"thumbnail\">";
speed += "<object type=\"application/image-preview\" data=\"";
- speed += urls.at(i) + "\" width=\"200\">";
+ speed += urls.at(i) + "\" >";
+ speed += "<param name=\"title\" value=\"" + text + "\" />";
speed += "<param name=\"index\" value=\"" + QString::number(i) + "\" />";
speed += "<param name=\"isFavorite\" value=\"true\" />";
speed += "</object>";
- speed += "<br />";
- speed += "<a href=\"" + urls.at(i) + "\">" + text + "</a></div>";
+ speed += "</div>";
}
return speed;
}
+// FIXME : port to new PreviewImage API to use...
QString HomePage::lastVisitedSites()
{
QString last;
@@ -293,9 +294,10 @@ QString HomePage::fillClosedTabs()
closed += "<div class=\"thumbnail\">";
closed += "<object type=\"application/image-preview\" data=\"";
closed += url.prettyUrl() + "\" width=\"200\">";
+ closed += "<param name=\"title\" value=\"" + text + "\" />";
+ closed += "<param name=\"index\" value=\"" + QString::number(i) + "\" />";
closed += "</object>";
- closed += "<br />";
- closed += "<a href=\"" + url.prettyUrl() + "\">" + text + "</a></div>";
+ closed += "</div>";
}
return closed;