9#include <QtGui/private/qgenericunixfontdatabase_p.h>
10#include <QtGui/private/qgenericunixeventdispatcher_p.h>
12#include <QtFbSupport/private/qfbbackingstore_p.h>
13#include <QtFbSupport/private/qfbwindow_p.h>
14#include <QtFbSupport/private/qfbcursor_p.h>
16#include <QtGui/private/qguiapplication_p.h>
17#include <qpa/qplatforminputcontextfactory_p.h>
18#include <qpa/qwindowsysteminterface.h>
19#include <qpa/qplatformservices.h>
23QIntegrityFbIntegration::QIntegrityFbIntegration(
const QStringList ¶mList)
24 : m_fontDb(
new QGenericUnixFontDatabase)
26 m_primaryScreen =
new QIntegrityFbScreen(paramList);
31 QWindowSystemInterface::handleScreenRemoved(m_primaryScreen);
37 QWindowSystemInterface::handleScreenAdded(m_primaryScreen);
39 qWarning(
"integrityfb: Failed to initialize screen");
41 m_inputContext = QPlatformInputContextFactory::create();
43 m_nativeInterface.reset(
new QPlatformNativeInterface);
45 if (!qEnvironmentVariableIntValue(
"QT_QPA_FB_DISABLE_INPUT"))
46 createInputHandlers();
52 case ThreadedPixmaps:
return true;
53 case WindowManagement:
return false;
54 default:
return QPlatformIntegration::hasCapability(cap);
60 return new QFbBackingStore(window);
65 return new QFbWindow(window);
70 return createUnixEventDispatcher();
75 QList<QPlatformScreen *> list;
76 list.append(m_primaryScreen);
82 return m_fontDb.data();
87 if (m_services.isNull())
88 m_services.reset(
new QPlatformServices);
90 return m_services.data();
95 new QIntegrityHIDManager(
"HID",
"",
this);
100 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()
Combined button and popup list for selecting options.