Let EglFS pick up a platform input context if installed
Change-Id: Ia3765997682f8f90c7f7da712527beea365e01ed Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
This commit is contained in:
parent
620f911fd8
commit
35a51de5b4
@ -66,6 +66,8 @@
|
||||
#include <QtGui/QOffscreenSurface>
|
||||
#include <qpa/qplatformcursor.h>
|
||||
|
||||
#include <qpa/qplatforminputcontextfactory_p.h>
|
||||
|
||||
#include "qeglfscontext.h"
|
||||
|
||||
#include <EGL/egl.h>
|
||||
@ -115,6 +117,8 @@ QEglFSIntegration::QEglFSIntegration()
|
||||
|
||||
mScreen = new QEglFSScreen(mDisplay);
|
||||
screenAdded(mScreen);
|
||||
|
||||
mInputContext = QPlatformInputContextFactory::create();
|
||||
}
|
||||
|
||||
QEglFSIntegration::~QEglFSIntegration()
|
||||
|
@ -79,11 +79,14 @@ public:
|
||||
|
||||
EGLDisplay display() const { return mDisplay; }
|
||||
|
||||
QPlatformInputContext *inputContext() const { return mInputContext; }
|
||||
|
||||
private:
|
||||
EGLDisplay mDisplay;
|
||||
QAbstractEventDispatcher *mEventDispatcher;
|
||||
QPlatformFontDatabase *mFontDb;
|
||||
QPlatformScreen *mScreen;
|
||||
QPlatformInputContext *mInputContext;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
Loading…
Reference in New Issue
Block a user