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
...
...
@@ -28,24 +34,14 @@ Item {
Connections{
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="";
qrCodeStatus.text=qsTr("User registration is completed.\nScan a new QR code to access the shared project from a different user.");
}
}
}
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")
text:qsTr("Scan QR code")
onClicked:backend.scanQrCode()
Layout.fillWidth:true
Layout.alignment:Qt.AlignHCenter|Qt.AlignVCenter
...
...
@@ -75,12 +71,15 @@ Item {
projectList.enabled=true;
downloadUserProject.enabled=true;
}else{
projectList.displayText="No projects are available";
projectList.displayText=qsTr("No project is available");
projectList.enabled=false;
downloadUserProject.enabled=false;
}
}
displayText:"Scan QR code to access your projects";
onCurrentIndexChanged:{
displayText=model[currentIndex].appName;
}
displayText:qsTr("Scan QR code to access your projects");