forked from qt-creator/qt-creator
QmlDesigner: Fix some QML warnings/errors
* Fix unknown functions in Connections element warning * Fix unable to assign [undefined] to QObject* * Fix type error cannot read property 'connectorStatus' of undefined Change-Id: Ib986188567c6e2261c7bda376e325f005cb28360 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
890697a483
commit
828dc711b3
@@ -379,7 +379,8 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: backend.designViewerConnector
|
target: backend.designViewerConnector ?? null
|
||||||
|
ignoreUnknownSignals: true
|
||||||
|
|
||||||
function onUserInfoReceived(reply: var) {
|
function onUserInfoReceived(reply: var) {
|
||||||
let jsonReply = JSON.parse(reply)
|
let jsonReply = JSON.parse(reply)
|
||||||
@@ -397,7 +398,7 @@ Rectangle {
|
|||||||
property int internalMargin: 8
|
property int internalMargin: 8
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
currentIndex: backend.designViewerConnector.connectorStatus
|
currentIndex: backend.designViewerConnector?.connectorStatus ?? 0
|
||||||
|
|
||||||
// Fetching
|
// Fetching
|
||||||
Rectangle {
|
Rectangle {
|
||||||
@@ -469,7 +470,8 @@ Rectangle {
|
|||||||
id: shareNotification
|
id: shareNotification
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: backend.designViewerConnector
|
target: backend.designViewerConnector ?? null
|
||||||
|
ignoreUnknownSignals: true
|
||||||
|
|
||||||
function onProjectUploadProgress(progress: var) {
|
function onProjectUploadProgress(progress: var) {
|
||||||
shareNotification.setProgress(progress)
|
shareNotification.setProgress(progress)
|
||||||
|
Reference in New Issue
Block a user