diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-13 18:28:02 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-14 18:36:47 +0200 |
commit | abea114ea32993cd6e41fc3b821deafa345c783b (patch) | |
tree | cdad0e1c4fcad8dda4cf2891a40b14d4ddf03bb4 | |
parent | We have thumbnails! Hugh! (diff) | |
download | rekonq-abea114ea32993cd6e41fc3b821deafa345c783b.tar.xz |
Adding url to previews
-rw-r--r-- | data/home.html | 1 | ||||
-rw-r--r-- | src/homepage.cpp | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/data/home.html b/data/home.html index 68ab9326..43e1b452 100644 --- a/data/home.html +++ b/data/home.html @@ -44,6 +44,7 @@ color: #00f; .thumbnail { +text-align: center; float:left; width:230px; margin:0 10px 10px 10px; diff --git a/src/homepage.cpp b/src/homepage.cpp index 59078c51..957118f8 100644 --- a/src/homepage.cpp +++ b/src/homepage.cpp @@ -99,7 +99,9 @@ QString HomePage::speedDial() WebSnap *ws = new WebSnap(url, fileName); } - speed += "<img class=\"thumbnail\" src=\"" + path + "\" width=\"200\" alt=\"" + url.prettyUrl() + "\" />"; + speed += "<div class=\"thumbnail\"><img src=\"" + path + "\" width=\"200\" alt=\"" + url.prettyUrl() + "\" />"; + speed += "<br />"; + speed += "<a href=\"" + url.prettyUrl() + "\">" + url.prettyUrl() + "</a></div>"; } return speed; } @@ -107,7 +109,7 @@ QString HomePage::speedDial() QString HomePage::searchEngines() { - QString engines = "engines"; + QString engines = "engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines "; return engines; } @@ -115,7 +117,7 @@ QString HomePage::searchEngines() QString HomePage::recentlyClosedTabs() { - QString closedtabs = "closed"; + QString closedtabs = "engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines engines closed"; return closedtabs; } |