Skip to content
Snippets Groups Projects
Verified Commit 8c7646b8 authored by Burak Hançerli's avatar Burak Hançerli :headphones:
Browse files

fix: minor issues and flipable item update

parent f9bf03b9
No related branches found
No related tags found
1 merge request!39QDS-11913 minor issues and flipable item update
Pipeline #67368 passed
Subproject commit 59721758afe9d7034ca76f1a19c3c5c97610ceaa
Subproject commit 5f115ed120adb58972ac3a0a2b80ec42cf3769a1
......@@ -359,8 +359,7 @@ void Backend::runDemoProject(const QString &projectName)
if (!cached) {
updatePopup("Downloading demo project...", false);
const std::optional<QByteArray> project = m_serviceConnector.fetchDemo(projectName
+ ".qmlrc");
const std::optional<QByteArray> project = m_serviceConnector.fetchDemo(projectName);
if (project == std::nullopt) {
qCritical() << "Could not download demo project. Please check the logs for more "
......
......@@ -19,7 +19,13 @@ Item {
Text {
id: qrCodeStatus
text: qsTr("No user is registered. To access your shared projects:")
text: {
if (backend.userHash() === '') {
return qsTr("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.")
}
return qsTr("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
function onUserHashChanged(){
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";
currentIndex: -1
Layout.preferredHeight: 50
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment