diff options
author | megabigbug <megabigbug@arrakis.(none)> | 2010-03-26 23:06:48 +0100 |
---|---|---|
committer | megabigbug <megabigbug@arrakis.(none)> | 2010-03-26 23:06:48 +0100 |
commit | 4f0377e06e824ecfa7a8e106d80ca95760114b85 (patch) | |
tree | e09805220edc36f8892033a65f6cf2f1c6f119c8 /src/webpage.cpp | |
parent | Revert "derivation of the lastbar branch: UltimateLastBar :)" (diff) | |
parent | rekonq 0.4.55 (diff) | |
download | rekonq-4f0377e06e824ecfa7a8e106d80ca95760114b85.tar.xz |
Merge branch 'master' of git://gitorious.org/rekonq/mainline
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp index 06e733b0..71cc8be4 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -271,9 +271,22 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) } } // case KParts::BrowserRun::Embed - KUrl::List list; - list.append(url); - KRun::run(*offer,url,0); + QString html; + html += "<html>"; + html += "<head>"; + html += "<title>"; + html += url.pathOrUrl(); + html += "</title>"; + html += "<style type=\"text/css\">"; + html += "* { border: 0; padding: 0; margin: 0; }"; + html += "</style>"; + html += "</head>"; + html += "<body>"; + html += "<embed src=\"" + url.pathOrUrl() + "\" width=\"100%\" height=\"100%\" />"; + html += "</body>"; + html += "</html>"; + + mainFrame()->setHtml(html, url); } } |