diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/items/qsgtextinput.cpp | 1 | ||||
-rw-r--r-- | src/declarative/items/qsgtextinput_p_p.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/declarative/items/qsgtextinput.cpp b/src/declarative/items/qsgtextinput.cpp index 4eab28bbcf..1db4474d4a 100644 --- a/src/declarative/items/qsgtextinput.cpp +++ b/src/declarative/items/qsgtextinput.cpp @@ -1150,6 +1150,7 @@ bool QSGTextInput::isInputMethodComposing() const void QSGTextInputPrivate::init() { Q_Q(QSGTextInput); + control->setParent(q);//Now mandatory due to accessibility changes control->setCursorWidth(1); control->setPasswordCharacter(QLatin1Char('*')); q->setSmooth(smooth); diff --git a/src/declarative/items/qsgtextinput_p_p.h b/src/declarative/items/qsgtextinput_p_p.h index 22c95a7b1d..6561d28a31 100644 --- a/src/declarative/items/qsgtextinput_p_p.h +++ b/src/declarative/items/qsgtextinput_p_p.h @@ -83,12 +83,10 @@ public: showInputPanelOnFocus = false; } #endif - } ~QSGTextInputPrivate() { - delete control; } int xToPos(int x, QTextLine::CursorPosition betweenOrOn = QTextLine::CursorBetweenCharacters) const |