mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-10 04:15:51 +00:00
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:
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user