summaryrefslogtreecommitdiff
path: root/src/plugins/tasklist/taskfilefactory.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@nokia.com>2012-02-14 16:43:51 +0100
committerEike Ziller <eike.ziller@nokia.com>2012-02-20 13:32:49 +0100
commitd66acb51d0c8b511df9f679806cbd3d84cce41ef (patch)
tree58289c9e7f7bc6107b4d620fad791a206d097555 /src/plugins/tasklist/taskfilefactory.cpp
parent266da3568d2db185f67227d38e29cd20d28fb2bd (diff)
downloadqt-creator-d66acb51d0c8b511df9f679806cbd3d84cce41ef.tar.gz
Rename IFile->IDocument and FileManager->DocumentManager
And adapt the other API respectively. Change-Id: I1e04e555409be09242db6890f9e013396f83aeed Reviewed-by: Bill King <bill.king@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/tasklist/taskfilefactory.cpp')
-rw-r--r--src/plugins/tasklist/taskfilefactory.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/tasklist/taskfilefactory.cpp b/src/plugins/tasklist/taskfilefactory.cpp
index 3bdcb8be11..1d33158b5c 100644
--- a/src/plugins/tasklist/taskfilefactory.cpp
+++ b/src/plugins/tasklist/taskfilefactory.cpp
@@ -37,7 +37,7 @@
#include <projectexplorer/projectexplorer.h>
#include <coreplugin/icore.h>
#include <coreplugin/id.h>
-#include <coreplugin/filemanager.h>
+#include <coreplugin/documentmanager.h>
#include <QMainWindow>
#include <QMessageBox>
@@ -49,7 +49,7 @@ using namespace TaskList::Internal;
// --------------------------------------------------------------------------
TaskFileFactory::TaskFileFactory(QObject * parent) :
- Core::IFileFactory(parent),
+ Core::IDocumentFactory(parent),
m_mimeTypes(QStringList() << QLatin1String("text/x-tasklist"))
{ }
@@ -71,13 +71,13 @@ QString TaskFileFactory::displayName() const
return tr("Task file reader");
}
-Core::IFile *TaskFileFactory::open(const QString &fileName)
+Core::IDocument *TaskFileFactory::open(const QString &fileName)
{
ProjectExplorer::Project *context = ProjectExplorer::ProjectExplorerPlugin::currentProject();
return open(context, fileName);
}
-Core::IFile *TaskFileFactory::open(ProjectExplorer::Project *context, const QString &fileName)
+Core::IDocument *TaskFileFactory::open(ProjectExplorer::Project *context, const QString &fileName)
{
TaskFile *file = new TaskFile(this);
file->setContext(context);
@@ -92,14 +92,14 @@ Core::IFile *TaskFileFactory::open(ProjectExplorer::Project *context, const QStr
m_openFiles.append(file);
// Register with filemanager:
- Core::FileManager::addFile(file);
+ Core::DocumentManager::addDocument(file);
return file;
}
void TaskFileFactory::closeAllFiles()
{
- foreach(Core::IFile *file, m_openFiles)
- file->deleteLater();
+ foreach (Core::IDocument *document, m_openFiles)
+ document->deleteLater();
m_openFiles.clear();
}