Converting saveItems() into a public slot to be invokable from QML.
This commit is contained in:
@ -29,7 +29,6 @@ class GenericCore : public QObject {
|
|||||||
std::shared_ptr<TableModel> getModel() const;
|
std::shared_ptr<TableModel> getModel() const;
|
||||||
std::shared_ptr<GeneralSortFilterModel> getSortFilterModel() const;
|
std::shared_ptr<GeneralSortFilterModel> getSortFilterModel() const;
|
||||||
|
|
||||||
void saveItems();
|
|
||||||
void importCSVFile(const QString& filePath);
|
void importCSVFile(const QString& filePath);
|
||||||
bool exportCSVFile(const QString& filePath);
|
bool exportCSVFile(const QString& filePath);
|
||||||
|
|
||||||
@ -38,6 +37,8 @@ class GenericCore : public QObject {
|
|||||||
bool isSyncServerSetup() const;
|
bool isSyncServerSetup() const;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
void saveItems();
|
||||||
|
|
||||||
void onSendItemTriggered(const QByteArray& jsonData);
|
void onSendItemTriggered(const QByteArray& jsonData);
|
||||||
void onItemsFetched(const QByteArray jsonData);
|
void onItemsFetched(const QByteArray jsonData);
|
||||||
void onItemsFetchFailure(const QString errorString);
|
void onItemsFetchFailure(const QString errorString);
|
||||||
|
|||||||
Reference in New Issue
Block a user