diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-10-23 18:25:59 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-12-10 02:48:05 +0100 |
commit | f6a7ef195c24517a025ac11c3156fdd23686562d (patch) | |
tree | 0fb2e9f835332c9a462b09a6a2fc14b2eee1fd16 /src/webwindow/webwindow.cpp | |
parent | Fixes problem with Web Comboxes not dropping down when clicked, (diff) | |
download | rekonq-f6a7ef195c24517a025ac11c3156fdd23686562d.tar.xz |
Removed some porting FIXME and re-enabled old features
Diffstat (limited to 'src/webwindow/webwindow.cpp')
-rw-r--r-- | src/webwindow/webwindow.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp index b38498d5..60eba237 100644 --- a/src/webwindow/webwindow.cpp +++ b/src/webwindow/webwindow.cpp @@ -504,7 +504,7 @@ void WebWindow::openPrevious(Qt::MouseButtons mouseButtons, Qt::KeyboardModifier if (mouseButtons == Qt::MidButton || keyboardModifiers == Qt::ControlModifier) { -// FIXME rApp->loadUrl(item->url(), Rekonq::NewTab); + rApp->loadUrl(item->url(), Rekonq::NewTab); } else { @@ -537,7 +537,7 @@ void WebWindow::openNext(Qt::MouseButtons mouseButtons, Qt::KeyboardModifiers ke if (mouseButtons == Qt::MidButton || keyboardModifiers == Qt::ControlModifier) { -// FIXME rApp->loadUrl(item->url(), Rekonq::NewTab); + rApp->loadUrl(item->url(), Rekonq::NewTab); } else { @@ -757,19 +757,20 @@ void WebWindow::viewPageSource() tmpFile.close(); KUrl tmpUrl(tmpFile.fileName()); - KParts::ReadOnlyPart *pa = KMimeTypeTrader::createPartInstanceFromQuery<KParts::ReadOnlyPart>(QL1S("text/plain"), _tab, this, QString()); - if (pa) - { - // FIXME DO SOMETHING... + KRun::runUrl(tmpUrl, QL1S("text/plain"), this, false); + +// FIXME: Implement "view-source" scheme +// KParts::ReadOnlyPart *pa = KMimeTypeTrader::createPartInstanceFromQuery<KParts::ReadOnlyPart>(QL1S("text/plain"), _tab, this, QString()); +// if (pa) +// { // WebTab *srcTab = m_view->newWebTab(true); // srcTab->page()->setIsOnRekonqPage(true); // srcTab->setPart(pa, tmpUrl); // srcTab->urlBar()->setQUrl(url.pathOrUrl()); // m_view->setTabText(m_view->currentIndex(), i18n("Source of: ") + url.prettyUrl()); // updateHistoryActions(); - } - else - KRun::runUrl(tmpUrl, QL1S("text/plain"), this, false); +// } + } |