mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-21 01:29:58 +00:00
initial plasma6 support
This commit is contained in:
@ -15,11 +15,11 @@
|
||||
* along with awesome-widgets. If not, see http://www.gnu.org/licenses/ *
|
||||
***************************************************************************/
|
||||
|
||||
import QtQuick 2.2
|
||||
import QtQuick.Controls 1.3 as QtControls
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls
|
||||
|
||||
|
||||
QtControls.Button {
|
||||
Button {
|
||||
// parent object in which text will be replaced
|
||||
property var textField
|
||||
// start and end tags
|
||||
@ -31,7 +31,7 @@ QtControls.Button {
|
||||
|
||||
function updateText() {
|
||||
// get selected text
|
||||
var selected = textField.selectedText()
|
||||
const selected = textField.selectedText()
|
||||
// remove it from widget
|
||||
textField.removeSelection()
|
||||
// insert edited text
|
||||
|
Reference in New Issue
Block a user