10#include <QtGui/private/qgenericunixfontdatabase_p.h>
11#include <QtGui/private/qgenericunixservices_p.h>
12#include <QtGui/private/qgenericunixeventdispatcher_p.h>
14#include <QtFbSupport/private/qfbvthandler_p.h>
15#include <QtFbSupport/private/qfbbackingstore_p.h>
16#include <QtFbSupport/private/qfbwindow_p.h>
17#include <QtFbSupport/private/qfbcursor_p.h>
19#include <QtGui/private/qguiapplication_p.h>
20#include <qpa/qplatforminputcontextfactory_p.h>
21#include <qpa/qwindowsysteminterface.h>
23#if QT_CONFIG(libinput)
24#include <QtInputSupport/private/qlibinputhandler_p.h>
28#include <QtInputSupport/private/qevdevmousemanager_p.h>
29#include <QtInputSupport/private/qevdevkeyboardmanager_p.h>
30#include <QtInputSupport/private/qevdevtouchmanager_p.h>
34#include <QtInputSupport/private/qtslib_p.h>
65 qWarning(
"linuxfb: Failed to initialize screen");
72 createInputHandlers();
97 return createUnixEventDispatcher();
109 return m_fontDb.
data();
114 return m_services.
data();
117void QLinuxFbIntegration::createInputHandlers()
119#if QT_CONFIG(libinput)
154void QLinuxFbIntegration::loadKeymap(
const QString &filename)
159 qWarning(
"QLinuxFbIntegration: Cannot load keymap, no keyboard handler found");
162void QLinuxFbIntegration::switchLang()
167 qWarning(
"QLinuxFbIntegration: Cannot switch language, no keyboard handler found");
void loadKeymap(const QString &file)
virtual bool initialize()
QList< QPlatformScreen * > screens() const
void initialize() override
Performs initialization steps that depend on having an event dispatcher available.
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
bool hasCapability(QPlatformIntegration::Capability cap) const override
QFunctionPointer platformFunction(const QByteArray &function) const override
QLinuxFbIntegration(const QStringList ¶mList)
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
QPlatformNativeInterface * nativeInterface() const override
QPlatformServices * services() const override
void append(parameter_type t)
static QPlatformInputContext * create()
T * data() const noexcept
Returns the value of the pointer referenced by this object.
void reset(T *other=nullptr) noexcept(noexcept(Cleanup::cleanup(std::declval< T * >())))
Deletes the existing object it is pointing to (if any), and sets its pointer to other.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static void handleScreenAdded(QPlatformScreen *screen, bool isPrimary=false)
Should be called by the implementation whenever a new screen is added.
static void handleScreenRemoved(QPlatformScreen *screen)
Should be called by the implementation whenever a screen is removed.
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction function
Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) noexcept