feat: add hard reload signal and wrap root object

This commit is contained in:
outfoxxed 2024-01-31 17:43:18 -08:00
parent d14258df8e
commit 9a5ad44aa9
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
6 changed files with 116 additions and 22 deletions

View file

@ -23,11 +23,14 @@ class QtShell: public QObject, public QQmlParserStatus {
public:
explicit QtShell();
void classBegin() override {};
void classBegin() override {}
void componentComplete() override;
QQmlListProperty<ShellComponent> components();
public slots:
void reload();
private:
static void appendComponent(QQmlListProperty<ShellComponent>* list, ShellComponent* component);