8#include <QtGui/private/qgenericunixfontdatabase_p.h>
9#include <QtGui/private/qgenericunixeventdispatcher_p.h>
11#include <QtFbSupport/private/qfbbackingstore_p.h>
12#include <QtFbSupport/private/qfbwindow_p.h>
13#include <QtFbSupport/private/qfbcursor_p.h>
15#include <QtGui/private/qguiapplication_p.h>
16#include <qpa/qplatforminputcontextfactory_p.h>
17#include <qpa/qwindowsysteminterface.h>
18#include <qpa/qplatformservices.h>
22QIntegrityFbIntegration::QIntegrityFbIntegration(
const QStringList ¶mList)
23 : m_fontDb(
new QGenericUnixFontDatabase)
25 m_primaryScreen =
new QIntegrityFbScreen(paramList);
30 QWindowSystemInterface::handleScreenRemoved(m_primaryScreen);
36 QWindowSystemInterface::handleScreenAdded(m_primaryScreen);
38 qWarning(
"integrityfb: Failed to initialize screen");
40 m_inputContext = QPlatformInputContextFactory::create();
42 m_nativeInterface.reset(
new QPlatformNativeInterface);
44 if (!qEnvironmentVariableIntValue(
"QT_QPA_FB_DISABLE_INPUT"))
45 createInputHandlers();
51 case ThreadedPixmaps:
return true;
52 case WindowManagement:
return false;
53 default:
return QPlatformIntegration::hasCapability(cap);
59 return new QFbBackingStore(window);
64 return new QFbWindow(window);
69 return createUnixEventDispatcher();
74 QList<QPlatformScreen *> list;
75 list.append(m_primaryScreen);
81 return m_fontDb.data();
86 if (m_services.isNull())
87 m_services.reset(
new QPlatformServices);
89 return m_services.data();
94 new QIntegrityHIDManager(
"HID",
"",
this);
99 return m_nativeInterface.data();
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
QList< QPlatformScreen * > screens() const
QPlatformServices * services() const override
bool hasCapability(QPlatformIntegration::Capability cap) const override
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
void initialize() override
Performs initialization steps that depend on having an event dispatcher available.
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
QPlatformNativeInterface * nativeInterface() const override
~QIntegrityFbIntegration()