diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2014-11-16 10:52:41 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-11-26 13:46:38 +0100 |
commit | 7f341580412847d325ffa4f7a82d27a763ff598f (patch) | |
tree | aa1f40058022372d26876d8ed6b7649425ab3f69 /src/plugins/coreplugin/mainwindow.cpp | |
parent | 6804c2117915e84dd37a793ae5c99321acbdd85b (diff) | |
download | qt-creator-7f341580412847d325ffa4f7a82d27a763ff598f.tar.gz |
Core: Cosmetics
* Remove redundant namespace qualifiers
* Qt5-ify some signal/slot connections
* Replace some using Core::Internal with explicit namespace scopes
Change-Id: Id1aae05e2c6fc2992c2716e1f8f9e985c6e56122
Reviewed-by: hjk <hjk121@nokiamail.com>
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 2db94d27dc..64142837a8 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -157,7 +157,7 @@ MainWindow::MainWindow() : if (Utils::HostOsInfo::isLinuxHost()) QApplication::setWindowIcon(QIcon(QLatin1String(Constants::ICON_QTLOGO_128))); QCoreApplication::setApplicationName(QLatin1String("QtCreator")); - QCoreApplication::setApplicationVersion(QLatin1String(Core::Constants::IDE_VERSION_LONG)); + QCoreApplication::setApplicationVersion(QLatin1String(Constants::IDE_VERSION_LONG)); QCoreApplication::setOrganizationName(QLatin1String(Constants::IDE_SETTINGSVARIANT_STR)); QString baseName = QApplication::style()->objectName(); // Sometimes we get the standard windows 95 style as a fallback @@ -330,9 +330,9 @@ bool MainWindow::init(QString *errorMessage) // Add widget to the bottom, we create the view here instead of inside the // OutputPaneManager, since the StatusBarManager needs to be initialized before - m_outputView = new Core::StatusBarWidget; + m_outputView = new StatusBarWidget; m_outputView->setWidget(OutputPaneManager::instance()->buttonsWidget()); - m_outputView->setPosition(Core::StatusBarWidget::Second); + m_outputView->setPosition(StatusBarWidget::Second); ExtensionSystem::PluginManager::addObject(m_outputView); MessageManager::init(); return true; @@ -791,7 +791,7 @@ IDocument *MainWindow::openFiles(const QStringList &fileNames, ICore::OpenFilesF if (!res) res = document; if (flags & ICore::SwitchMode) - ModeManager::activateMode(Id(Core::Constants::MODE_EDIT)); + ModeManager::activateMode(Id(Constants::MODE_EDIT)); } } else { QFlags<EditorManager::OpenEditorFlag> emFlags; @@ -1068,7 +1068,7 @@ void MainWindow::aboutToShowRecentFiles() if (hasRecentFiles) { menu->addSeparator(); QAction *action = menu->addAction(QCoreApplication::translate( - "Core", Core::Constants::TR_CLEAR_MENU)); + "Core", Constants::TR_CLEAR_MENU)); connect(action, SIGNAL(triggered()), DocumentManager::instance(), SLOT(clearRecentFiles())); } } |