summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorSergio Martins <sergio.martins.qnx@kdab.com>2012-12-14 13:44:39 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-19 14:36:41 (GMT)
commitf7d8aa8256b550293b0124abfbd613776c140231 (patch)
treecc50a5a6982f5f1cdfc83eb15dfb1d360cbb2adf /src/plugins
parenta1d757850e6e6fdad7ac2ebda8142f0e1419e7b9 (diff)
downloadQt-f7d8aa8256b550293b0124abfbd613776c140231.zip
Qt-f7d8aa8256b550293b0124abfbd613776c140231.tar.gz
Qt-f7d8aa8256b550293b0124abfbd613776c140231.tar.bz2
Blackberry: Reset virtual keyboard when shown.
The keyboard mode is shared between applications. You can reproduce this bug by clicking on a spin box, it will open a number only keyboard, then close the application and run an application that shows a text edit: a number only keyboard will appear. PPS keyboard already does this. Backport of Qt 5 commit 019f9158e64ae24 Change-Id: I1ef8e32ae2958a604cfe618b765b23504997f0d4 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/blackberry/qbbvirtualkeyboardbps.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/blackberry/qbbvirtualkeyboardbps.cpp b/src/plugins/platforms/blackberry/qbbvirtualkeyboardbps.cpp
index 712d568..c64ad55 100644
--- a/src/plugins/platforms/blackberry/qbbvirtualkeyboardbps.cpp
+++ b/src/plugins/platforms/blackberry/qbbvirtualkeyboardbps.cpp
@@ -85,6 +85,10 @@ bool QBBVirtualKeyboardBps::showKeyboard()
qDebug() << Q_FUNC_INFO << "current visibility=" << isVisible();
#endif
+ // They keyboard's mode is global between applications, we have to set it each time
+ if (!isVisible())
+ applyKeyboardMode(keyboardMode());
+
virtualkeyboard_show();
return true;
}