summaryrefslogtreecommitdiff
path: root/src/rekonqpage/newtabpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-13 00:31:05 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-13 00:31:05 +0100
commit76f0719394a0e0d74338375b24061feb1ad1386f (patch)
tree90987efe0bdea054ffbf130b99b99d5bf86cf7ad /src/rekonqpage/newtabpage.cpp
parentrekonq 0.3.90 (0.4 beta) (diff)
parentworkaround too big bottom border (diff)
downloadrekonq-76f0719394a0e0d74338375b24061feb1ad1386f.tar.xz
Merge commit 'refs/merge-requests/87' of git://gitorious.org/rekonq/mainline into mr87
Diffstat (limited to 'src/rekonqpage/newtabpage.cpp')
-rw-r--r--src/rekonqpage/newtabpage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rekonqpage/newtabpage.cpp b/src/rekonqpage/newtabpage.cpp
index 3fd9fcc6..ca8ed35e 100644
--- a/src/rekonqpage/newtabpage.cpp
+++ b/src/rekonqpage/newtabpage.cpp
@@ -171,7 +171,7 @@ QWebElement NewTabPage::emptyPreview(int index)
prev.findFirst(".preview img").setAttribute("src" , QString("file:///") +
KIconLoader::global()->iconPath("insert-image", KIconLoader::Desktop));
- prev.findFirst("span").appendInside(i18n("Set a Preview..."));
+ prev.findFirst("span a").setPlainText(i18n("Set a Preview..."));
prev.findFirst("a").setAttribute("href", QString("about:preview/modify/" + QVariant(index).toString()));
setupPreview(prev, index);
@@ -187,7 +187,7 @@ QWebElement NewTabPage::loadingPreview(int index, KUrl url)
prev.findFirst(".preview img").setAttribute("src" ,
QString("file:///") + KStandardDirs::locate("appdata", "pics/busywidget.gif"));
- prev.findFirst("span").appendInside(i18n("Loading Preview..."));
+ prev.findFirst("span a").setPlainText(i18n("Loading Preview..."));
prev.findFirst("a").setAttribute("href", url.toMimeDataString());
setupPreview(prev, index);
@@ -208,7 +208,7 @@ QWebElement NewTabPage::validPreview(int index, KUrl url, QString title)
prev.findFirst(".preview img").setAttribute("src" , previewPath.toMimeDataString());
prev.findFirst("a").setAttribute("href", url.toMimeDataString());
prev.findFirst("span a").setAttribute("href", url.toMimeDataString());
- prev.findFirst("span").setPlainText(checkTitle(title));
+ prev.findFirst("span a").setPlainText(checkTitle(title));
setupPreview(prev, index);
showControls(prev);