Paste from clipboard on "Add new URL"
This commit is contained in:
parent
2f63de31b0
commit
d1e7b2f2c9
3 changed files with 12 additions and 0 deletions
|
@ -28,10 +28,17 @@ Dialog {
|
|||
property string buttonText
|
||||
property string placeholderText
|
||||
property string text
|
||||
property bool pasteOnLoad: false
|
||||
property var callback
|
||||
|
||||
contentHeight: contentColumn.height
|
||||
|
||||
Component.onCompleted: {
|
||||
if (pasteOnLoad) {
|
||||
input.paste();
|
||||
}
|
||||
}
|
||||
|
||||
function accept() {
|
||||
textInputDialog.callback(input.text);
|
||||
textInputDialog.closePage();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue