From 701d0d6369a80281be1da400ff686ebc40e757b6 Mon Sep 17 00:00:00 2001 From: rohithzmoi <166651631+rohithzmoi@users.noreply.github.com> Date: Sat, 7 Sep 2024 14:48:06 +0530 Subject: [PATCH] Update QsoTab.qml Added the sahre button after exported file saved Signed-off-by: rohithzmoi <166651631+rohithzmoi@users.noreply.github.com> --- QsoTab.qml | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/QsoTab.qml b/QsoTab.qml index 58629cf..2f864c5 100644 --- a/QsoTab.qml +++ b/QsoTab.qml @@ -317,7 +317,7 @@ Dialog { } */ - // Dialog to show that the file was saved +// Dialog to show that the file was saved Dialog { id: fileSavedDialog title: "File Saved" @@ -330,18 +330,42 @@ Dialog { background: Rectangle { color: "#80c342" - radius: 8 + radius: 8 // Optional: Add rounded corners } - contentItem: Text { - text: "File saved successfully to " + savedFilePath - font.pointSize: 14 - color: "black" - wrapMode: Text.WordWrap - width: parent.width * 0.9 + 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 // 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 width: parent.width