Update QsoTab.qml

Added the sahre button after exported file saved

Signed-off-by: rohithzmoi <166651631+rohithzmoi@users.noreply.github.com>
This commit is contained in:
rohithzmoi 2024-09-07 14:48:06 +05:30 committed by GitHub
parent a2d0620c8d
commit 701d0d6369
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 32 additions and 8 deletions

View File

@ -317,7 +317,7 @@ Dialog {
} }
*/ */
// Dialog to show that the file was saved // Dialog to show that the file was saved
Dialog { Dialog {
id: fileSavedDialog id: fileSavedDialog
title: "File Saved" title: "File Saved"
@ -330,18 +330,42 @@ Dialog {
background: Rectangle { background: Rectangle {
color: "#80c342" color: "#80c342"
radius: 8 radius: 8 // Optional: Add rounded corners
} }
contentItem: Text { contentItem: Column {
text: "File saved successfully to " + savedFilePath spacing: 10 // Add some spacing between the text and buttons
font.pointSize: 14
color: "black" // Text to display the success message
wrapMode: Text.WordWrap Text {
width: parent.width * 0.9 text: "File saved successfully to " + savedFilePath
font.pointSize: 14
color: "black"
wrapMode: Text.WordWrap // Enable text wrapping
width: parent.width * 0.9 // Ensure some padding from the edges
}
// Row for the buttons
Row {
spacing: 10 // Add some spacing between the buttons
anchors.horizontalCenter: parent.horizontalCenter // Center the buttons horizontally
Button {
text: "Cancel"
onClicked: fileSavedDialog.accept() // Handle the Ok button click
}
Button {
text: "Share"
onClicked: {
logHandler.shareFile(savedFilePath);
}
}
}
} }
} }
Row { Row {
id: tableHeader id: tableHeader
width: parent.width width: parent.width