Apply 2081a3d0fd to SG TextInput

This commit is contained in:
Martin Jones 2011-05-17 09:17:36 +10:00
parent 3c600f0b6e
commit 2257e544e1
2 changed files with 1 additions and 2 deletions

View 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);

View File

@ -83,12 +83,10 @@ public:
showInputPanelOnFocus = false;
}
#endif
}
~QSGTextInputPrivate()
{
delete control;
}
int xToPos(int x, QTextLine::CursorPosition betweenOrOn = QTextLine::CursorBetweenCharacters) const