diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-02-09 11:15:10 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-02-09 11:15:10 +0100 |
commit | 57bc503662183f0d2b89ddc419548e0938c17e8f (patch) | |
tree | 24917351016a6b90e5d48028aae16a03c8ad28d3 /src/rekonqpage/newtabpage.cpp | |
parent | FIX (diff) | |
download | rekonq-57bc503662183f0d2b89ddc419548e0938c17e8f.tar.xz |
Fix NewTabPage API && comments
Diffstat (limited to 'src/rekonqpage/newtabpage.cpp')
-rw-r--r-- | src/rekonqpage/newtabpage.cpp | 4 |
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:///") + |