mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Merge branch 'master' of github.com:highfidelity/hifi into equip-via-thumb
This commit is contained in:
commit
37b895db0a
1 changed files with 7 additions and 2 deletions
|
@ -130,8 +130,13 @@ void QmlWindowClass::initQml(QVariantMap properties) {
|
|||
}
|
||||
|
||||
void QmlWindowClass::qmlToScript(const QVariant& message) {
|
||||
QJSValue js = qvariant_cast<QJSValue>(message);
|
||||
emit fromQml(js.toVariant());
|
||||
if (message.canConvert<QJSValue>()) {
|
||||
emit fromQml(qvariant_cast<QJSValue>(message).toVariant());
|
||||
} else if (message.canConvert<QString>()) {
|
||||
emit fromQml(message.toString());
|
||||
} else {
|
||||
qWarning() << "Unsupported message type " << message;
|
||||
}
|
||||
}
|
||||
|
||||
void QmlWindowClass::sendToQml(const QVariant& message) {
|
||||
|
|
Loading…
Reference in a new issue