forked from qt-creator/qt-creator
Todo: Remove plugin pimpl
Not needed anymore Change-Id: Ia8f0d39a487b0defce81b18b67e0ee5115b71b90 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -10,25 +10,6 @@
|
|||||||
|
|
||||||
namespace Todo::Internal {
|
namespace Todo::Internal {
|
||||||
|
|
||||||
class TodoPluginPrivate : public QObject
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
TodoPluginPrivate();
|
|
||||||
};
|
|
||||||
|
|
||||||
TodoPluginPrivate::TodoPluginPrivate()
|
|
||||||
{
|
|
||||||
todoSettings().load();
|
|
||||||
|
|
||||||
setupTodoItemsProvider(this);
|
|
||||||
setupTodoOutputPane(this);
|
|
||||||
|
|
||||||
setupTodoSettingsPage();
|
|
||||||
|
|
||||||
setupTodoSettingsProjectPanel();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
class TodoPlugin final : public ExtensionSystem::IPlugin
|
class TodoPlugin final : public ExtensionSystem::IPlugin
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@@ -40,18 +21,17 @@ public:
|
|||||||
qRegisterMetaType<TodoItem>("TodoItem");
|
qRegisterMetaType<TodoItem>("TodoItem");
|
||||||
}
|
}
|
||||||
|
|
||||||
~TodoPlugin() final
|
|
||||||
{
|
|
||||||
delete d;
|
|
||||||
}
|
|
||||||
|
|
||||||
void initialize() final
|
void initialize() final
|
||||||
{
|
{
|
||||||
d = new TodoPluginPrivate;
|
todoSettings().load();
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
setupTodoItemsProvider(this);
|
||||||
TodoPluginPrivate *d = nullptr;
|
setupTodoOutputPane(this);
|
||||||
|
|
||||||
|
setupTodoSettingsPage();
|
||||||
|
|
||||||
|
setupTodoSettingsProjectPanel();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Todo::Internal
|
} // Todo::Internal
|
||||||
|
|||||||
Reference in New Issue
Block a user