forked from qt-creator/qt-creator
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:
@@ -1168,8 +1168,8 @@ void HelpPlugin::handleHelpRequest(const QUrl &url)
|
||||
|
||||
QString address = url.toString();
|
||||
if (!Core::HelpManager::instance()->findFile(url).isValid()) {
|
||||
if (address.startsWith(HelpViewer::NsNokia)
|
||||
|| address.startsWith(HelpViewer::NsTrolltech)) {
|
||||
if (address.startsWith(QLatin1String("qthelp://com.nokia."))
|
||||
|| address.startsWith(QLatin1String("qthelp://com.trolltech."))) {
|
||||
// local help not installed, resort to external web help
|
||||
QString urlPrefix = QLatin1String("http://doc.qt.digia.com/");
|
||||
if (url.authority() == QLatin1String("com.nokia.qtcreator"))
|
||||
|
||||
Reference in New Issue
Block a user