Files
krfb/events/x11/x11eventsplugin.cpp
Nicolas Fella f5df4d7603 Add and make use of ECM clang-format integration
This formats the code according to the KDE coding style and ensures it stays that way
2024-08-08 13:16:41 +02:00

32 lines
634 B
C++

/* This file is part of the KDE project
SPDX-FileCopyrightText: 2016 Oleg Chernovskiy <kanedias@xaker.ru>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "x11eventsplugin.h"
#include "x11events.h"
#include <KPluginFactory>
#include <QtGui/private/qtx11extras_p.h>
K_PLUGIN_CLASS(X11EventsPlugin)
X11EventsPlugin::X11EventsPlugin(QObject *parent, const QVariantList &args)
: EventsPlugin(parent, args)
{
}
EventHandler *X11EventsPlugin::eventHandler()
{
// works only under X11
if (!QX11Info::isPlatformX11())
return nullptr;
return new X11EventHandler();
}
#include "x11eventsplugin.moc"