diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-01-13 15:23:28 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-01-14 08:16:52 +0000 |
commit | 7c35c447e1ce31bbe904191d8972a284b1757b89 (patch) | |
tree | a8e1cc030496980ae38b3dbff607021133f407bd /src/app | |
parent | e25212e2c5b58577ebee8c187cdf20134bda2478 (diff) | |
download | qt-creator-7c35c447e1ce31bbe904191d8972a284b1757b89.tar.gz |
Set application details earlier
The application details (name, organization, etc) were only set during
Core plugin startup, but that is too late for e.g. the plugin manager.
Change-Id: Id47d79e38dec9e586ab7b91a3080101e5fecb20d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index e343aaad81..406d256b46 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -512,6 +512,11 @@ int main(int argc, char **argv) SharedTools::QtSingleApplication app((QLatin1String(Core::Constants::IDE_DISPLAY_NAME)), numberofArguments, options.appArguments.data()); + QCoreApplication::setApplicationName(Core::Constants::IDE_CASED_ID); + QCoreApplication::setApplicationVersion(Core::Constants::IDE_VERSION_LONG); + QCoreApplication::setOrganizationName(Core::Constants::IDE_SETTINGSVARIANT_STR); + QGuiApplication::setApplicationDisplayName(Core::Constants::IDE_DISPLAY_NAME); + const QStringList pluginArguments = app.arguments(); /*Initialize global settings and resetup install settings with QApplication::applicationDirPath */ |