aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-05-17 09:17:36 +1000
committerMartin Jones <martin.jones@nokia.com>2011-05-17 09:17:36 +1000
commit2257e544e1968ab63b03479659ae3a5ffa6c6a5b (patch)
tree60e8e9e43417a655ed96a3e6790306f754e93fd2 /src
parent3c600f0b6ec9484e6042ed5a7c288dc96c88f471 (diff)
Apply 2081a3d0fd7266ffba83849fee967e048e991270 to SG TextInput
Diffstat (limited to 'src')
-rw-r--r--src/declarative/items/qsgtextinput.cpp1
-rw-r--r--src/declarative/items/qsgtextinput_p_p.h2
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