v1.0.2 release
Critical Changes
The first argument of dispatched signal has been changed from "name" to "type", for following the naming convention of Flux.
signal dispatched(string type,object message)
Remarks: It won't affect code that uses filter property.
Updated example code:
// Listen for multiple messages.
AppListener {
onDispatched: {
switch (type) {
case "messageType1":
// ...
break;
case "messageType2":
// ...
break;
}
}
}
Other Changes
QFAppDispatcher
Added new method: "singletonObject"
/// Obtain a singleton object from package for specific QQmlEngine
static QObject* singletonObject(QQmlEngine* engine,QString package,
int versionMajor,
int versionMinor,
QString typeName);