@ -10,12 +10,17 @@ Pane {
implicitHeight: rootLayout . height
implicitHeight: rootLayout . height
padding: 0
padding: 0
property string text
property alias readOnly: seedtextarea . readOnly
property alias readOnly: seedtextarea . readOnly
property alias text: seedtextarea . text
property alias placeholderText: seedtextarea . placeholderText
property alias placeholderText: seedtextarea . placeholderText
property var _suggestions : [ ]
property var _suggestions : [ ]
onTextChanged: {
if ( seedtextarea . text != text )
seedtextarea . text = text
}
background: Rectangle {
background: Rectangle {
color: "transparent"
color: "transparent"
}
}
@ -84,6 +89,12 @@ Pane {
}
}
onTextChanged: {
onTextChanged: {
/ / w o r k a r o u n d Q t i s s u e , T e x t A r e a f i r e s s p u r i o u s t e x t C h a n g e d e v e n t s
/ / N O T E : m i g h t b e Q t v i r t u a l k e y b o a r d , o r Q t u p g r a d e f r o m 5 . 1 5 . 2 t o 5 . 1 5 . 7
if ( root . text != text )
root . text = text
/ / u p d a t e s u g g e s t i o n s
_suggestions = bitcoin . mnemonicsFor ( seedtextarea . text . split ( ' ' ) . pop ( ) )
_suggestions = bitcoin . mnemonicsFor ( seedtextarea . text . split ( ' ' ) . pop ( ) )
/ / T O D O : c u r s o r P o s i t i o n o n l y o n s u g g e s t i o n a p p l y
/ / T O D O : c u r s o r P o s i t i o n o n l y o n s u g g e s t i o n a p p l y
cursorPosition = text . length
cursorPosition = text . length