Help: move global constants

Global constants that are used only in one place could live
just there.

Change-Id: Ibee751b6ccc4fb0d35a8e708995730991becd749
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
This commit is contained in:
hjk
2013-01-11 09:03:02 +01:00
parent abf6f324f2
commit c0e7b65db3
4 changed files with 10 additions and 21 deletions

View File

@@ -168,8 +168,14 @@ void HelpViewer::setSource(const QUrl &url)
}
QTextBrowser::setSource(url);
setHtml(string == Help::Constants::AboutBlank ? AboutBlankPage
: PageNotFoundMessage.arg(url.toString()));
setHtml(string == Help::Constants::AboutBlank
? HelpViewer::tr("<title>about:blank</title>")
: HelpViewer::tr("<html><head><meta http-equiv=\""
"content-type\" content=\"text/html; charset=UTF-8\"><title>Error 404...</title>"
"</head><body><div align=\"center\"><br><br><h1>The page could not be found</h1>"
"<br><h3>'%1'</h3></div></body>")
.arg(url.toString()));
emit loadFinished(true);
}