From 5530aff2f3a4cd2fd67c4e8769c1a3fae8ead151 Mon Sep 17 00:00:00 2001 From: Bent Witthold Date: Mon, 9 Mar 2026 15:44:51 +0100 Subject: [PATCH] Converting saveItems() into a public slot to be invokable from QML. --- genericcore.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/genericcore.h b/genericcore.h index 4bf30ea..4fce2eb 100644 --- a/genericcore.h +++ b/genericcore.h @@ -29,7 +29,6 @@ class GenericCore : public QObject { std::shared_ptr getModel() const; std::shared_ptr getSortFilterModel() const; - void saveItems(); void importCSVFile(const QString& filePath); bool exportCSVFile(const QString& filePath); @@ -38,6 +37,8 @@ class GenericCore : public QObject { bool isSyncServerSetup() const; public slots: + void saveItems(); + void onSendItemTriggered(const QByteArray& jsonData); void onItemsFetched(const QByteArray jsonData); void onItemsFetchFailure(const QString errorString);