Todo: Remove plugin pimpl

Not needed anymore

Change-Id: Ia8f0d39a487b0defce81b18b67e0ee5115b71b90
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2024-01-30 17:18:32 +01:00
parent cfc4d96483
commit e25b531b54

View File

@@ -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