forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user