qml: add simple Toaster, mainly to indicate copy to clipboard
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user