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:
Gunnar Sletta 2013-03-21 12:53:15 +01:00 committed by The Qt Project
parent 620f911fd8
commit 35a51de5b4
2 changed files with 7 additions and 0 deletions

View File

@ -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()

View File

@ -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