From 4ef01c961e20fa0c2d4623f28f469916ec4e1abd Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 29 Aug 2017 11:48:48 +0200 Subject: app_version.h: Make IDE name configurable Change-Id: I993f452c8d09cf89e9a2958fc8e36b7d2c17ee6f Reviewed-by: Leena Miettinen Reviewed-by: Tobias Hunger --- src/plugins/coreplugin/mainwindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/plugins/coreplugin/mainwindow.cpp') 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); -- cgit v1.2.1