diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2014-04-29 13:38:42 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2014-04-29 13:41:10 +0200 |
commit | 399f49cca221701f2f860dab43bc638d2ce9294f (patch) | |
tree | b48b547abf2ac56e312af50e3b202171893c62f5 /src/plugins | |
parent | 444feda0b14a0d879c3844054d7b267fe628b025 (diff) | |
download | qt-creator-399f49cca221701f2f860dab43bc638d2ce9294f.tar.gz |
TaskListPlugin: Use pointers to TaskFiles instead of IDocuments
... in internal list of files we have already open.
Change-Id: I76072c87f374a0881792a04d7ead28e954b94a20
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/tasklist/taskfilefactory.cpp | 2 | ||||
-rw-r--r-- | src/plugins/tasklist/taskfilefactory.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/tasklist/taskfilefactory.cpp b/src/plugins/tasklist/taskfilefactory.cpp index ad8fdb82ea..a902449257 100644 --- a/src/plugins/tasklist/taskfilefactory.cpp +++ b/src/plugins/tasklist/taskfilefactory.cpp @@ -80,7 +80,7 @@ Core::IDocument *TaskFileFactory::open(const QString &base, const QString &fileN void TaskFileFactory::closeAllFiles() { - foreach (Core::IDocument *document, m_openFiles) + foreach (TaskFile *document, m_openFiles) document->deleteLater(); m_openFiles.clear(); } diff --git a/src/plugins/tasklist/taskfilefactory.h b/src/plugins/tasklist/taskfilefactory.h index 2e0248b4e6..96fcb7d30c 100644 --- a/src/plugins/tasklist/taskfilefactory.h +++ b/src/plugins/tasklist/taskfilefactory.h @@ -38,6 +38,8 @@ namespace ProjectExplorer { class Project; } namespace TaskList { namespace Internal { +class TaskFile; + class TaskFileFactory : public Core::IDocumentFactory { Q_OBJECT @@ -51,7 +53,7 @@ public: void closeAllFiles(); private: - QList<Core::IDocument *> m_openFiles; + QList<TaskFile *> m_openFiles; }; } // namespace Internal |