mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-02 16:35:52 +00:00
massive changes inside
* use pass by ref instead of by value if possible * use reference in interation over collections * fix no tag inserting
This commit is contained in:
@ -53,7 +53,7 @@ Row {
|
||||
onClicked: {
|
||||
if (!tags.currentText)
|
||||
return
|
||||
textArea.insert(textArea.cursorPosition, "$" + tags.currentText)
|
||||
textArea.insert("$" + tags.currentText)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ Item {
|
||||
}
|
||||
|
||||
function appendTag(tag, substring) {
|
||||
textArea.insert(textArea.cursorPosition, tag.substring(substring.length))
|
||||
insert(tag.substring(substring.length))
|
||||
}
|
||||
|
||||
function changeTooltipPosition() {
|
||||
@ -89,6 +89,10 @@ Item {
|
||||
// get current tag text
|
||||
return substring.substr(signIndex)
|
||||
}
|
||||
|
||||
function insert(text) {
|
||||
textArea.insert(textArea.cursorPosition, text)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user