From 67889927e14fece3377137365c403e1ece360e05 Mon Sep 17 00:00:00 2001 From: Skycoder42 Date: Tue, 19 Jun 2018 22:55:43 +0200 Subject: [PATCH] add revision to signal --- src/imports/mvvmcore/plugins.qmltypes | 1 + src/mvvmcore/settingsviewmodel.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/imports/mvvmcore/plugins.qmltypes b/src/imports/mvvmcore/plugins.qmltypes index a3ffee3..d119137 100644 --- a/src/imports/mvvmcore/plugins.qmltypes +++ b/src/imports/mvvmcore/plugins.qmltypes @@ -482,6 +482,7 @@ Module { Signal { name: "beginLoadSetup" } Signal { name: "valueChanged" + revision: 1 Parameter { name: "key"; type: "string" } } Method { diff --git a/src/mvvmcore/settingsviewmodel.h b/src/mvvmcore/settingsviewmodel.h index 86ec9f3..e9bd080 100644 --- a/src/mvvmcore/settingsviewmodel.h +++ b/src/mvvmcore/settingsviewmodel.h @@ -74,7 +74,7 @@ Q_SIGNALS: //! Is emitted when the initialization has been completed and the viewmodel is ready for loading settings void beginLoadSetup(); - void valueChanged(const QString &key); //TODO add to save/reset doc + Q_REVISION(1) void valueChanged(const QString &key); //TODO add to save/reset doc protected: void onInit(const QVariantHash ¶ms) override;