diff options
author | Katja Marttila <katja.marttila@qt.io> | 2018-09-24 10:10:56 +0300 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2018-09-27 08:13:51 +0000 |
commit | 0e9909532f61f2fa18b9fb480bdc4b3f94bfc632 (patch) | |
tree | d25154d8bdc18dd9a798d8d68a32a1e78413ad38 /examples | |
parent | 2e42e535206ff9ff9fecc9af9cf51ccb2bb6edae (diff) |
Add signal to inform about unstable components
Task-number: QTIFW-1197
Change-Id: If9d7941f4c7bfc478daa83dcd73dfa71c9163561
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/unstablecomponent/config/config.xml | 1 | ||||
-rw-r--r-- | examples/unstablecomponent/config/controller.qs | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/examples/unstablecomponent/config/config.xml b/examples/unstablecomponent/config/config.xml index bd9ac49ea..fb42ae334 100644 --- a/examples/unstablecomponent/config/config.xml +++ b/examples/unstablecomponent/config/config.xml @@ -7,4 +7,5 @@ <StartMenuDir>Qt IFW Examples</StartMenuDir> <TargetDir>@HomeDir@/IfwExamples/unstablecomponent</TargetDir> <AllowUnstableComponents>true</AllowUnstableComponents> + <ControlScript>controller.qs</ControlScript> </Installer> diff --git a/examples/unstablecomponent/config/controller.qs b/examples/unstablecomponent/config/controller.qs new file mode 100644 index 000000000..ea7f96802 --- /dev/null +++ b/examples/unstablecomponent/config/controller.qs @@ -0,0 +1,10 @@ +function Controller() { + installer.unstableComponentFound.connect(unstableComponentFound) +} + +unstableComponentFound = function(type, message, comp) +{ + console.log("Unstable component, type: " + type) + console.log("Unstable component, message: " + message) + console.log("Unstable component, name: " + comp) +} |