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

@ -330,17 +330,41 @@ Dialog {
background: Rectangle {
color: "#80c342"
radius: 8
radius: 8 // Optional: Add rounded corners
}
contentItem: Text {
contentItem: Column {
spacing: 10 // Add some spacing between the text and buttons
// Text to display the success message
Text {
text: "File saved successfully to " + savedFilePath
font.pointSize: 14
color: "black"
wrapMode: Text.WordWrap
width: parent.width * 0.9
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 {
id: tableHeader