diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2017-08-29 11:48:48 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2017-09-05 10:19:48 +0000 |
commit | 4ef01c961e20fa0c2d4623f28f469916ec4e1abd (patch) | |
tree | 1bbe75e64a1cd1fdf51a05c1af1d145670c91452 /src/plugins/coreplugin/mainwindow.cpp | |
parent | ca959d8063a5beb08af6737a367c8befb688401c (diff) | |
download | qt-creator-4ef01c961e20fa0c2d4623f28f469916ec4e1abd.tar.gz |
app_version.h: Make IDE name configurable
Change-Id: I993f452c8d09cf89e9a2958fc8e36b7d2c17ee6f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/mainwindow.cpp')
-rw-r--r-- | src/plugins/coreplugin/mainwindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index 9010fd8da3..5b65b2b97d 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -109,7 +109,7 @@ MainWindow::MainWindow() : m_coreImpl(new ICore(this)), m_lowPrioAdditionalContexts(Constants::C_GLOBAL), m_settingsDatabase(new SettingsDatabase(QFileInfo(PluginManager::settings()->fileName()).path(), - QLatin1String("QtCreator"), + QLatin1String(Constants::IDE_CASED_ID), this)), m_progressManager(new ProgressManagerPrivate), m_jsExpander(new JsExpander), @@ -130,10 +130,10 @@ MainWindow::MainWindow() : HistoryCompleter::setSettings(PluginManager::settings()); - setWindowTitle(tr("Qt Creator")); + setWindowTitle(Constants::IDE_DISPLAY_NAME); if (HostOsInfo::isLinuxHost()) QApplication::setWindowIcon(Icons::QTCREATORLOGO_BIG.icon()); - QCoreApplication::setApplicationName(QLatin1String("QtCreator")); + QCoreApplication::setApplicationName(QLatin1String(Constants::IDE_CASED_ID)); QCoreApplication::setApplicationVersion(QLatin1String(Constants::IDE_VERSION_LONG)); QCoreApplication::setOrganizationName(QLatin1String(Constants::IDE_SETTINGSVARIANT_STR)); QString baseName = QApplication::style()->objectName(); @@ -741,9 +741,9 @@ void MainWindow::registerDefaultActions() // About IDE Action icon = QIcon::fromTheme(QLatin1String("help-about")); if (HostOsInfo::isMacHost()) - tmpaction = new QAction(icon, tr("About &Qt Creator"), this); // it's convention not to add dots to the about menu + tmpaction = new QAction(icon, tr("About &%1").arg(Constants::IDE_DISPLAY_NAME), this); // it's convention not to add dots to the about menu else - tmpaction = new QAction(icon, tr("About &Qt Creator..."), this); + tmpaction = new QAction(icon, tr("About &%1...").arg(Constants::IDE_DISPLAY_NAME), this); tmpaction->setMenuRole(QAction::AboutRole); cmd = ActionManager::registerAction(tmpaction, Constants::ABOUT_QTCREATOR); mhelp->addAction(cmd, Constants::G_HELP_ABOUT); |