TaskList: Pimpl and avoid using the global object pool

Use the pattern that's currently being established.

Change-Id: Icfb1472cc394f0e371056d5cb23fd22d291dbdaa
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2018-02-02 15:00:52 +01:00
parent 63cc5491f5
commit 7945ba7923
2 changed files with 25 additions and 17 deletions

View File

@@ -33,8 +33,6 @@ namespace Utils { class FileName; }
namespace TaskList {
namespace Internal {
class TaskFile;
class TaskListPlugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
@@ -42,6 +40,7 @@ class TaskListPlugin : public ExtensionSystem::IPlugin
public:
TaskListPlugin();
~TaskListPlugin() final;
bool initialize(const QStringList &arguments, QString *errorMessage);
void extensionsInitialized() {}
@@ -53,12 +52,10 @@ public:
Core::IDocument *openTasks(const Utils::FileName &fileName);
public slots:
void loadDataFromSession();
private:
Core::IDocumentFactory *m_fileFactory = nullptr;
QList<TaskFile *> m_openFiles;
class TaskListPluginPrivate *d = nullptr;
};
} // namespace Internal