Allow http request to be opened in the help plugin.

Reviewed-by: ck
This commit is contained in:
kh1
2010-06-14 14:31:34 +02:00
parent dc91a0949a
commit 7d4bbf4934
4 changed files with 24 additions and 15 deletions

View File

@@ -144,6 +144,13 @@ QUrl HelpViewer::source() const
void HelpViewer::setSource(const QUrl &url)
{
const QString &scheme = url.scheme();
if (scheme != QLatin1String("qthelp") && scheme != QLatin1String("about")) {
QTextBrowser::setSource(resolvedUrl);
emit loadFinished(true);
return;
}
const QString &string = url.toString();
if (url.isValid() && string != QLatin1String("help")) {
if (launchWithExternalApp(url))