aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsgtextinput.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-08-05 10:25:58 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2011-08-05 10:48:12 +0200
commit667652ddca50c8bd3d39a42ca3042eac1070b5b4 (patch)
tree3a6206648f56177374159fb00c8ce87241b528b7 /src/declarative/items/qsgtextinput.cpp
parent2a77a88cc2284506bacbe9116ea68432d93efd5d (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/qsgtextinput.cpp')
-rw-r--r--src/declarative/items/qsgtextinput.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/declarative/items/qsgtextinput.cpp b/src/declarative/items/qsgtextinput.cpp
index d55bdc8924..405540d419 100644
--- a/src/declarative/items/qsgtextinput.cpp
+++ b/src/declarative/items/qsgtextinput.cpp
@@ -1056,9 +1056,8 @@ void QSGTextInput::moveCursorSelection(int pos, SelectionMode mode)
void QSGTextInput::openSoftwareInputPanel()
{
- QEvent event(QEvent::RequestSoftwareInputPanel);
if (qApp) {
- if (canvas() && canvas() == QGuiApplication::activeWindow()) {
+ if (canvas()) {
QEvent event(QEvent::RequestSoftwareInputPanel);
QApplication::sendEvent(canvas(), &event);
}
@@ -1068,11 +1067,9 @@ void QSGTextInput::openSoftwareInputPanel()
void QSGTextInput::closeSoftwareInputPanel()
{
if (qApp) {
- if (canvas() && canvas() == QGuiApplication::activeWindow()) {
- // ### refactor: port properly
- qDebug("QSGTextInput: closing virtual keyboard not implemented");
-// QEvent event(QEvent::CloseSoftwareInputPanel);
-// QApplication::sendEvent(canvas(), &event);
+ if (canvas()) {
+ QEvent event(QEvent::CloseSoftwareInputPanel);
+ QApplication::sendEvent(canvas(), &event);
}
}
}