summaryrefslogtreecommitdiff
path: root/src/homepage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-19 15:59:10 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-19 15:59:10 +0200
commite5e8916773a45a6d4f35fcb5cf6dec594e6726c4 (patch)
tree463085cd530fe3c9e68e15c809ff6407609fa564 /src/homepage.cpp
parentPorting recently closed tabs to use HistoryItem. (diff)
downloadrekonq-e5e8916773a45a6d4f35fcb5cf6dec594e6726c4.tar.xz
Fixing thumbs position
Diffstat (limited to 'src/homepage.cpp')
-rw-r--r--src/homepage.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/homepage.cpp b/src/homepage.cpp
index 9a15f249..7d93216c 100644
--- a/src/homepage.cpp
+++ b/src/homepage.cpp
@@ -116,14 +116,13 @@ QString HomePage::fillFavorites()
for(int i=0; i<8; ++i)
{
QString text = names.at(i);
- if(text.length() > 20)
+ if(text.length() > 23)
{
- text.truncate(17);
+ text.truncate(20);
text += "...";
}
speed += "<div class=\"thumbnail\">";
- speed += "<object type=\"application/image-preview\" data=\"";
- speed += urls.at(i) + "\" >";
+ speed += "<object type=\"application/image-preview\" data=\"" + urls.at(i) + "\" >";
speed += "<param name=\"title\" value=\"" + text + "\" />";
speed += "<param name=\"index\" value=\"" + QString::number(i) + "\" />";
speed += "<param name=\"isFavorite\" value=\"true\" />";
@@ -144,8 +143,7 @@ QString HomePage::lastVisitedSites()
{
HistoryItem it = history.at(i);
last += "<div class=\"thumbnail\">";
- last += "<object type=\"application/image-preview\" data=\"" + it.url;
- last += "\" width=\"200\">";
+ last += "<object type=\"application/image-preview\" data=\"" + it.url + "\" >";
last += "</object>";
last += "<br />";
last += "<a href=\"" + it.url + "\">" + it.url + "</a></div>";
@@ -292,8 +290,7 @@ QString HomePage::fillClosedTabs()
}
closed += "<div class=\"thumbnail\">";
- closed += "<object type=\"application/image-preview\" data=\"";
- closed += item.url + "\" width=\"200\">";
+ closed += "<object type=\"application/image-preview\" data=\"" + item.url + "\" >";
closed += "<param name=\"title\" value=\"" + text + "\" />";
closed += "</object>";
closed += "</div>";