summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-01-13 15:23:28 +0100
committerEike Ziller <eike.ziller@qt.io>2020-01-14 08:16:52 +0000
commit7c35c447e1ce31bbe904191d8972a284b1757b89 (patch)
treea8e1cc030496980ae38b3dbff607021133f407bd /src/app
parente25212e2c5b58577ebee8c187cdf20134bda2478 (diff)
downloadqt-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.cpp5
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 */