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:
2017-05-04 15:00:50 +03:00
parent 6e99e262d4
commit 6e62ceaac7
119 changed files with 645 additions and 634 deletions

View File

@ -53,7 +53,7 @@ Row {
onClicked: {
if (!tags.currentText)
return
textArea.insert(textArea.cursorPosition, "$" + tags.currentText)
textArea.insert("$" + tags.currentText)
}
}

View File

@ -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)
}
}