summaryrefslogtreecommitdiff
path: root/src/homepage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/homepage.cpp')
-rw-r--r--src/homepage.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/homepage.cpp b/src/homepage.cpp
index 835be043..27d613ce 100644
--- a/src/homepage.cpp
+++ b/src/homepage.cpp
@@ -112,7 +112,7 @@ QString HomePage::fillFavorites()
QStringList names = ReKonfig::previewNames();
QStringList urls = ReKonfig::previewUrls();
- QString speed;
+ QString speed = "<div class=\"favorites\">";
for(int i=0; i<8; ++i)
{
speed += "<div class=\"thumbnail\">";
@@ -123,7 +123,8 @@ QString HomePage::fillFavorites()
speed += "</object>";
speed += "</div>";
}
-
+
+ speed += "</div>";
return speed;
}
@@ -150,7 +151,7 @@ QString HomePage::lastVisitedSites()
QString HomePage::homePageMenu(KUrl currentUrl)
{
- QString menu = "";
+ QString menu;
KIconLoader *loader = KIconLoader::global();
@@ -244,7 +245,7 @@ QString HomePage::createBookItem(const KBookmark &bookmark)
{
if (bookmark.isGroup())
{
- QString result = QString("");
+ QString result;
KBookmarkGroup group = bookmark.toGroup();
KBookmark bm = group.first();
result += "<h3>" + bookmark.text() + "</h3>";
@@ -263,8 +264,7 @@ QString HomePage::createBookItem(const KBookmark &bookmark)
return QString("<hr />");
}
- QString books = " ";
- books += "<a href=\"" + bookmark.url().prettyUrl() + "\">" + bookmark.text() + "</a><br />";
+ QString books = "<a href=\"" + bookmark.url().prettyUrl() + "\">" + bookmark.text() + "</a><br />";
return books;
}