Commit e68291e0 authored by hjk's avatar hjk

Core: Remove MainWindow::editorManager() accessor

Change-Id: Ic22cb1b0313ba51fa144b31117c6b005da0a4bff
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 25cde41e
......@@ -799,7 +799,7 @@ void MainWindow::newFile()
void MainWindow::openFile()
{
openFiles(editorManager()->getOpenFileNames(), ICore::SwitchMode);
openFiles(EditorManager::getOpenFileNames(), ICore::SwitchMode);
}
static QList<IDocumentFactory*> getNonEditorDocumentFactories()
......@@ -951,10 +951,9 @@ void MainWindow::exit()
void MainWindow::openFileWith()
{
QStringList fileNames = editorManager()->getOpenFileNames();
foreach (const QString &fileName, fileNames) {
foreach (const QString &fileName, EditorManager::getOpenFileNames()) {
bool isExternal;
const Id editorId = editorManager()->getOpenWithEditorId(fileName, &isExternal);
const Id editorId = EditorManager::getOpenWithEditorId(fileName, &isExternal);
if (!editorId.isValid())
continue;
if (isExternal)
......@@ -977,11 +976,6 @@ QSettings *MainWindow::settings(QSettings::Scope scope) const
return m_globalSettings;
}
EditorManager *MainWindow::editorManager() const
{
return m_editorManager;
}
MimeDatabase *MainWindow::mimeDatabase() const
{
return m_mimeDatabase;
......
......@@ -96,7 +96,6 @@ public:
Core::IDocument *openFiles(const QStringList &fileNames, ICore::OpenFilesFlags flags);
Core::EditorManager *editorManager() const;
Core::MimeDatabase *mimeDatabase() const;
VcsManager *vcsManager() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment