Bug fixing

* fix bug with invalid applet and configuration load with newest qt
* fix bug with invalid DP configuration
* fix bug with invalid HTML tags operations
This commit is contained in:
2017-06-02 17:33:02 +03:00
parent 934e30819c
commit 737759d03f
13 changed files with 34 additions and 26 deletions

View File

@ -90,6 +90,14 @@ Item {
function insert(text) {
textArea.insert(textArea.cursorPosition, text)
}
function removeSelection() {
textArea.remove(textArea.selectionStart, textArea.selectionEnd)
}
function selectedText() {
return textArea.selectedText
}
}

View File

@ -31,10 +31,10 @@ QtControls.Button {
function updateText() {
// get selected text
var selected = textField.selectedText
var selected = textField.selectedText()
// remove it from widget
textField.remove(textField.selectionStart, textField.selectionEnd)
textField.removeSelection()
// insert edited text
textField.insert(textField.cursorPosition, start + selected + end)
textField.insert(start + selected + end)
}
}

View File

@ -3,7 +3,7 @@
# common QML constants
singleton general 1.0 file://@CMAKE_INSTALL_PREFIX@/@DATA_INSTALL_DIR@/@PROJECT_NAME@/qml/general.qml
singleton General 1.0 file://@CMAKE_INSTALL_PREFIX@/@DATA_INSTALL_DIR@/@PROJECT_NAME@/qml/General.qml
# custom QML UI classes
AboutTab file://@CMAKE_INSTALL_PREFIX@/@DATA_INSTALL_DIR@/@PROJECT_NAME@/qml/AboutTab.qml