text:qsTr("No user is registered. To access your shared projects:")
text:{
if (backend.userHash()===''){
returnqsTr("No user is registered. To access your shared projects:\n\n1. Open the project with Design Studio (4.4 or later).\n2. Select File -> Share Application Online.\n3. Scan the QR code.")
}
returnqsTr("User registration is completed.\nScan a new QR code to access the shared project from a different user.");
}
font.pixelSize:12
horizontalAlignment:Text.AlignHCenter
verticalAlignment:Text.AlignVCenter
...
...
@@ -29,20 +35,10 @@ Item {
target:backend
functiononUserHashChanged(){
qrCodeStatus.text="User registration is completed.\nScan a new QR code to access the shared project from a different user.";
qrCodeInstructions.text="";
}
}
}
Text{
id:qrCodeInstructions
text:qsTr("1. Open the project with Design Studio (4.4 or later).\n2. Select File -> Share Application Online.\n3. Scan the QR code.")
font.pixelSize:12
horizontalAlignment:Text.AlignHCenter
verticalAlignment:Text.AlignVCenter
wrapMode:Text.WordWrap
Layout.fillWidth:true
}
Button{
id:scanQrCode
text:qsTr("Scan QR Code")
...
...
@@ -80,6 +76,9 @@ Item {
downloadUserProject.enabled=false;
}
}
onCurrentIndexChanged:{
displayText=model[currentIndex].appName;
}
displayText:"Scan QR code to access your projects";