summaryrefslogtreecommitdiff
path: root/src/rekonqpage/newtabpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rekonqpage/newtabpage.cpp')
-rw-r--r--src/rekonqpage/newtabpage.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rekonqpage/newtabpage.cpp b/src/rekonqpage/newtabpage.cpp
index 19f1686f..95b15ed9 100644
--- a/src/rekonqpage/newtabpage.cpp
+++ b/src/rekonqpage/newtabpage.cpp
@@ -197,6 +197,7 @@ QWebElement NewTabPage::loadingPreview(int index, KUrl url)
return prev;
}
+
QWebElement NewTabPage::validPreview(int index, KUrl url, QString title)
{
QWebElement prev = markup(".thumbnail");
@@ -220,12 +221,15 @@ void NewTabPage::hideControls(QWebElement e)
e.findFirst(".remove").setStyleProperty("visibility", "hidden");
e.findFirst(".modify").setStyleProperty("visibility", "hidden");
}
+
+
void NewTabPage::showControls(QWebElement e)
{
e.findFirst(".remove").setStyleProperty("visibility", "visible");
e.findFirst(".modify").setStyleProperty("visibility", "visible");
}
+
void NewTabPage::setupPreview(QWebElement e, int index)
{
e.findFirst(".remove img").setAttribute("src", QString("file:///") +