diff options
author | matgic78 <matgic78@gmail.com> | 2010-02-10 16:38:48 +0100 |
---|---|---|
committer | matgic78 <matgic78@gmail.com> | 2010-02-10 17:02:48 +0100 |
commit | 95e0972db84722d462e7e63f7250a88f285df2e3 (patch) | |
tree | 7ccaaea2543f378ffcb8fb0b4b72910bce698ce3 /src/rekonqpage/newtabpage.cpp | |
parent | DISCLAIMER: I'm sorry for this (diff) | |
download | rekonq-95e0972db84722d462e7e63f7250a88f285df2e3.tar.xz |
Improve newtabpage css:
-previews are centered
-favorites fit in 1280*800
-removed unuseful lines
Diffstat (limited to 'src/rekonqpage/newtabpage.cpp')
-rw-r--r-- | src/rekonqpage/newtabpage.cpp | 6 |
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); |