Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqnxinputcontext_noimf.h
Go to the documentation of this file.
1// Copyright (C) 2011 - 2012 Research In Motion
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQNXINPUTCONTEXT_H
5#define QQNXINPUTCONTEXT_H
6
7#include <QtCore/QLocale>
8#include <qpa/qplatforminputcontext.h>
9#include <qpa/qplatformintegration.h>
10
11QT_BEGIN_NAMESPACE
12
13class QQnxAbstractVirtualKeyboard;
14class QQnxIntegration;
15
17{
19public:
22
23 bool isValid() const override;
24
26 bool filterEvent(const QEvent *event) override;
27 QRectF keyboardRect() const override;
28 bool handleKeyboardEvent(int flags, int sym, int mod, int scan, int cap);
29
33
34 QLocale locale() const override;
35 void setFocusObject(QObject *object) override;
36
37private Q_SLOTS:
39 void keyboardVisibilityChanged(bool visible);
40 void keyboardLocaleChanged(const QLocale &locale);
41
42private:
43 bool hasPhysicalKeyboard();
44
45 bool m_inputPanelVisible;
46 QLocale m_inputPanelLocale;
47 QQnxIntegration *m_integration;
48 QQnxAbstractVirtualKeyboard &m_virtualKeyboard;
49};
50
51QT_END_NAMESPACE
52
53#endif // QQNXINPUTCONTEXT_H
bool isInputPanelVisible() const override
Returns input panel visibility status.
void reset() override
Method to be called when input method needs to be reset.
void hideInputPanel() override
Request to hide input panel.
void setFocusObject(QObject *object) override
This virtual method gets called to notify updated focus to object.
QLocale locale() const override
bool isValid() const override
Returns input context validity.
bool filterEvent(const QEvent *event) override
This function can be reimplemented to filter input events.
bool handleKeyboardEvent(int flags, int sym, int mod, int scan, int cap)
QRectF keyboardRect() const override
This function can be reimplemented to return virtual keyboard rectangle in currently active window co...
void showInputPanel() override
Request to show input panel.
QQnxScreen * primaryDisplay() const