diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2011-08-05 10:25:58 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-08-05 10:48:12 +0200 |
commit | 667652ddca50c8bd3d39a42ca3042eac1070b5b4 (patch) | |
tree | 3a6206648f56177374159fb00c8ce87241b528b7 /src/declarative/items/qsgtextedit.cpp | |
parent | 2a77a88cc2284506bacbe9116ea68432d93efd5d (diff) |
Ported use of QInputContext to QPlatformInputContext for now
Change-Id: I2e0e62cffd04c3a096d1402028a9be92d8b0a27c
Reviewed-on: http://codereview.qt.nokia.com/2677
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/declarative/items/qsgtextedit.cpp')
-rw-r--r-- | src/declarative/items/qsgtextedit.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/declarative/items/qsgtextedit.cpp b/src/declarative/items/qsgtextedit.cpp index 6c529db3d5..4ba5bec5e4 100644 --- a/src/declarative/items/qsgtextedit.cpp +++ b/src/declarative/items/qsgtextedit.cpp @@ -1193,24 +1193,20 @@ void QSGTextEditPrivate::updateDefaultTextOption() void QSGTextEdit::openSoftwareInputPanel() { if (qApp) { - // ### refactor:port properly - qDebug("QSGTextEdit: opening of virtual keyboard not implemented"); -// if (canvas() && canvas() == qApp->focusWidget()) { -// QEvent event(QEvent::RequestSoftwareInputPanel); -// QApplication::sendEvent(canvas(), &event); -// } + if (canvas()) { + QEvent event(QEvent::RequestSoftwareInputPanel); + QApplication::sendEvent(canvas(), &event); + } } } void QSGTextEdit::closeSoftwareInputPanel() { if (qApp) { - // ### refactor: port properly - qDebug("QSGTextEdit: closing of virtual keyboard not implemented..."); -// if (canvas() && canvas() == qApp->focusWidget()) { -// QEvent event(QEvent::CloseSoftwareInputPanel); -// QApplication::sendEvent(canvas(), &event); -// } + if (canvas()) { + QEvent event(QEvent::CloseSoftwareInputPanel); + QApplication::sendEvent(canvas(), &event); + } } } |