Skip to content

Commit

Permalink
added signal to get resulting data (#21) (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyTheCo authored Sep 18, 2023
1 parent 9093ea6 commit 33d7901
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions QtQrDec/qml/QrTextArea.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ Popup
id:popup_
property string description;
property string placeholder;
signal clicked();
signal clicked(string data);

onClosed: qrscanner.stop();
onOpened:{
qrscanner.stop();
recaddress.textarea.text="";
}

background: Rectangle
{
id:bck
Expand Down Expand Up @@ -59,7 +64,7 @@ Popup
onClicked:
{
popup_.close();
popup_.clicked();
popup_.clicked(recaddress.textarea.text);
}
text:qsTr("Ok")
}
Expand Down

0 comments on commit 33d7901

Please sign in to comment.