Apply 2081a3d0fd7266ffba83849fee967e048e991270 to SG TextInput
authorMartin Jones <martin.jones@nokia.com>
Mon, 16 May 2011 23:17:36 +0000 (09:17 +1000)
committerMartin Jones <martin.jones@nokia.com>
Mon, 16 May 2011 23:17:36 +0000 (09:17 +1000)
src/declarative/items/qsgtextinput.cpp
src/declarative/items/qsgtextinput_p_p.h

index 4eab28b..1db4474 100644 (file)
@@ -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);
index 22c95a7..6561d28 100644 (file)
@@ -83,12 +83,10 @@ public:
             showInputPanelOnFocus = false;
         }
 #endif
-
     }
 
     ~QSGTextInputPrivate()
     {
-        delete control;
     }
 
     int xToPos(int x, QTextLine::CursorPosition betweenOrOn = QTextLine::CursorBetweenCharacters) const