From a1b660daae9dd252d84ec44e8a5102277539b395 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 12 Dec 2012 18:47:35 +0100 Subject: - Code style check (codestyle script round) - restored CTRL + ENTER code - applied Vedant's patch about (thanks!!!) CCMAIL: vedant.kota@gmail.com REVIEW: 107662 REVIEWED-BY: Tirtha and me --- src/rekonqpage/newtabpage.cpp | 46 +++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'src/rekonqpage') diff --git a/src/rekonqpage/newtabpage.cpp b/src/rekonqpage/newtabpage.cpp index 90bba3b6..2d06f1dc 100644 --- a/src/rekonqpage/newtabpage.cpp +++ b/src/rekonqpage/newtabpage.cpp @@ -92,7 +92,7 @@ void NewTabPage::generate(const KUrl &url) QWebPage *pg = parentFrame->page(); WebView *view = qobject_cast(pg->parent()); WebTab *tab = qobject_cast(view->parent()); - + // about:preview links if (KUrl("about:settings").isParentOf(url)) { @@ -178,38 +178,38 @@ void NewTabPage::generate(const KUrl &url) // { // const int winIndex = url.queryItem(QL1S("win")).toInt(); // const int tabIndex = url.queryItem(QL1S("tab")).toInt(); -// +// // MainWindow *w = rApp->mainWindowList().at(winIndex).data(); -// +// // // close about:tabs tab // rApp->mainWindow()->mainView()->closeTab(rApp->mainWindow()->mainView()->currentIndex()); -// +// // // show requested tab // w->mainView()->setCurrentIndex(tabIndex); // if (w != rApp->mainWindow()) // w->raise(); // return; // } -// +// // if (url.fileName() == QL1S("remove")) // { // const int winIndex = url.queryItem(QL1S("win")).toInt(); // const int tabIndex = url.queryItem(QL1S("tab")).toInt(); -// +// // MainWindow *w = rApp->mainWindowList().at(winIndex).data(); // w->mainView()->closeTab(tabIndex); // loadPageForUrl(KUrl("about:tabs")); // return; // } // } -// +// // // about:closedTabs links // if (KUrl("about:closedTabs").isParentOf(url)) // { // if (url.fileName() == QL1S("restore")) // { // const int tabIndex = url.queryItem(QL1S("tab")).toInt(); -// +// // rApp->mainWindow()->mainView()->restoreClosedTab(tabIndex, false); // return; // } @@ -579,32 +579,32 @@ void NewTabPage::bookmarksPage() // void NewTabPage::closedTabsPage() // { // m_root.addClass(QL1S("closedTabs")); -// +// // QList links = rApp->mainWindow()->mainView()->recentlyClosedTabs(); -// +// // if (links.isEmpty()) // { // m_root.addClass(QL1S("empty")); // m_root.setPlainText(i18n("There are no recently closed tabs")); // return; // } -// +// // for (int i = 0; i < links.count(); ++i) // { // TabHistory item = links.at(i); // QWebElement prev; -// +// // if (item.url.isEmpty()) // continue; -// +// // prev = closedTabPreview(i, item.url, item.title); -// +// // prev.setAttribute(QL1S("id"), QL1S("preview") + QVariant(i).toString()); -// +// // // hide controls // prev.findFirst(QL1S(".right")).setStyleProperty(QL1S("visibility"), QL1S("hidden")); // prev.findFirst(QL1S(".left")).setStyleProperty(QL1S("visibility"), QL1S("hidden")); -// +// // m_root.appendInside(prev); // } // } @@ -737,20 +737,20 @@ void NewTabPage::downloadsPage(const QString & filter) // void NewTabPage::tabsPage() // { // m_root.addClass(QL1S("tabs")); -// +// // int wins = 0; // Q_FOREACH(const QWeakPointer &wPointer, rApp->mainWindowList()) // { // m_root.appendInside(markup(QL1S("h3"))); // m_root.lastChild().setPlainText(i18n("Window")); -// +// // MainWindow *w = wPointer.data(); -// +// // const int tabCount = w->mainView()->count(); // for (int i = 0; i < tabCount; ++i) // { // KUrl url = w->mainView()->webTab(i)->url(); -// +// // if (!WebSnap::existsImage(url)) // { // kDebug() << "image doesn't exist for url: " << url; @@ -760,12 +760,12 @@ void NewTabPage::downloadsPage(const QString & filter) // } // QString name = w->mainView()->webTab(i)->view()->title(); // QWebElement prev; -// +// // prev = tabPreview(wins, i, url, name); -// +// // m_root.appendInside(prev); // } -// +// // wins++; // } // } -- cgit v1.2.1