forked from qt-creator/qt-creator
Reduce usage of app_version header
Most information is available via Q(Core|Gui)Application. Add an AppInfo structure for the things that are not. This avoids that the information ends up duplicated and hardcoded in the plugins, which is not needed or desired. Change-Id: I4d565e75c42a7b8facafa90c27096ea49359215d Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -20,8 +20,6 @@
|
||||
#include "searchtaskhandler.h"
|
||||
#include "topicchooser.h"
|
||||
|
||||
#include <app/app_version.h>
|
||||
|
||||
#include <coreplugin/actionmanager/actioncontainer.h>
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
#include <coreplugin/actionmanager/command.h>
|
||||
@@ -568,7 +566,7 @@ HelpViewer *HelpPluginPrivate::showHelpUrl(const QUrl &url, Core::HelpManager::H
|
||||
// QtHelp doesn't know about versions, add the version number and use that
|
||||
QUrl versioned = url;
|
||||
versioned.setHost(qtcreatorUnversionedID + "."
|
||||
+ QString::fromLatin1(Core::Constants::IDE_VERSION_LONG).remove('.'));
|
||||
+ QCoreApplication::applicationVersion().remove('.'));
|
||||
|
||||
return showHelpUrl(versioned, location);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user