mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
This quicksetting plugion allows the user to open the KScreen OSD which makes it easy to reconfigure a multiscreen setup. It's only available when more than one monitor is connected. Signed-off-by: Sebastian Kügler <sebas@kde.org>
20 lines
562 B
C++
20 lines
562 B
C++
// SPDX-FileCopyrightText: 2025 Sebastian Kügler <sebas@kde.org>
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "kscreenosdplugin.h"
|
|
|
|
#include <QQmlContext>
|
|
#include <QQuickItem>
|
|
|
|
#include "kscreenosdutil.h"
|
|
|
|
void KScreenOSDPlugin::registerTypes(const char *uri)
|
|
{
|
|
Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.plasma.quicksetting.kscreenosd"));
|
|
|
|
qmlRegisterSingletonType<KScreenOSDUtil>(uri, 1, 0, "KScreenOSDUtil", [](QQmlEngine *, QJSEngine *) {
|
|
return new KScreenOSDUtil;
|
|
});
|
|
}
|
|
|
|
//#include "moc_screenrotationplugin.cpp"
|