From 399f49cca221701f2f860dab43bc638d2ce9294f Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 29 Apr 2014 13:38:42 +0200 Subject: TaskListPlugin: Use pointers to TaskFiles instead of IDocuments ... in internal list of files we have already open. Change-Id: I76072c87f374a0881792a04d7ead28e954b94a20 Reviewed-by: Tobias Hunger --- src/plugins/tasklist/taskfilefactory.cpp | 2 +- src/plugins/tasklist/taskfilefactory.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 m_openFiles; + QList m_openFiles; }; } // namespace Internal -- cgit v1.2.1