summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qinputpanel_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qinputpanel_p.h')
-rw-r--r--src/gui/kernel/qinputpanel_p.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/kernel/qinputpanel_p.h b/src/gui/kernel/qinputpanel_p.h
index f44b66832b..cf999cdd5f 100644
--- a/src/gui/kernel/qinputpanel_p.h
+++ b/src/gui/kernel/qinputpanel_p.h
@@ -46,6 +46,8 @@
#include <private/qobject_p.h>
#include <QtCore/QWeakPointer>
#include <QTransform>
+#include <qplatforminputcontext_qpa.h>
+#include <private/qguiapplication_p.h>
QT_BEGIN_HEADER
@@ -55,11 +57,21 @@ class QInputPanelPrivate : public QObjectPrivate
{
public:
inline QInputPanelPrivate()
- : visible(false)
+ : visible(false), testContext(0)
{}
+ QPlatformInputContext *platformInputContext() const
+ {
+ return testContext ? testContext : QGuiApplicationPrivate::platformIntegration()->inputContext();
+ }
+ static inline QInputPanelPrivate *get(QInputPanel *inputPanel)
+ {
+ return inputPanel->d_func();
+ }
+
QTransform inputItemTransform;
QWeakPointer<QObject> inputItem;
bool visible;
+ QPlatformInputContext *testContext;
};
QT_END_NAMESPACE