QNX: Fix QInputMethod::keyboardRectangleChanged() signal

Change-Id: Iad3ee07ba85854d2eb0cf36710643b75993bf61c
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
Oleg Shparber 2013-02-12 16:11:47 +02:00 committed by The Qt Project
parent 3fb356f531
commit 3a2276c6f3
2 changed files with 7 additions and 0 deletions

View File

@ -62,6 +62,7 @@ QQnxInputContext::QQnxInputContext(QQnxIntegration *integration, QQnxAbstractVir
m_integration(integration),
m_virtualKeyboard(keyboard)
{
connect(&keyboard, SIGNAL(heightChanged(int)), this, SLOT(keyboardHeightChanged()));
connect(&keyboard, SIGNAL(visibilityChanged(bool)), this, SLOT(keyboardVisibilityChanged(bool)));
connect(&keyboard, SIGNAL(localeChanged(QLocale)), this, SLOT(keyboardLocaleChanged(QLocale)));
keyboardVisibilityChanged(keyboard.isVisible());
@ -147,6 +148,11 @@ QLocale QQnxInputContext::locale() const
return m_inputPanelLocale;
}
void QQnxInputContext::keyboardHeightChanged()
{
emitKeyboardRectChanged();
}
void QQnxInputContext::keyboardVisibilityChanged(bool visible)
{
qInputContextDebug() << Q_FUNC_INFO << "visible=" << visible;

View File

@ -73,6 +73,7 @@ public:
void setFocusObject(QObject *object);
private Q_SLOTS:
void keyboardHeightChanged();
void keyboardVisibilityChanged(bool visible);
void keyboardLocaleChanged(const QLocale &locale);