quickshell/src/wayland/init.cpp

20 lines
423 B
C++
Raw Normal View History

#include <qguiapplication.h>
#include <qqml.h>
#include "../core/plugin.hpp"
#include "waylandlayershell.hpp"
namespace {
class WaylandPlugin: public QuickshellPlugin {
bool applies() override { return QGuiApplication::platformName() == "wayland"; }
void registerTypes() override {
qmlRegisterType<WaylandPanelInterface>("QuickShell", 1, 0, "PanelWindow");
}
};
QS_REGISTER_PLUGIN(WaylandPlugin);
} // namespace