1
0

qml: add simple Toaster, mainly to indicate copy to clipboard

This commit is contained in:
Sander van Grieken
2023-01-31 15:05:18 +01:00
parent 845ea599fa
commit d43f37d078
4 changed files with 78 additions and 2 deletions

View File

@@ -79,7 +79,10 @@ ElDialog {
FlatButton {
text: qsTr('Copy')
icon.source: '../../icons/copy_bw.png'
onClicked: AppController.textToClipboard(dialog.text)
onClicked: {
AppController.textToClipboard(dialog.text)
toaster.show(this, qsTr('Copied!'))
}
}
FlatButton {
text: qsTr('Share')
@@ -100,4 +103,8 @@ ElDialog {
}
}
}
Toaster {
id: toaster
}
}