shift-shell/quicksettings/kscreenosd/kscreenosdutil.h
Sebastian Kügler b849fb98ab kscreenosd quicksetting
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>
2025-08-18 10:59:49 +02:00

29 lines
582 B
C++

// SPDX-FileCopyrightText: 2025 Sebastian Kügler <sebas@kde.org>
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <QObject>
#include <kscreen/config.h>
class KScreenOSDUtil : public QObject
{
Q_OBJECT
Q_PROPERTY(int outputs READ outputs WRITE setOutputs NOTIFY outputsChanged);
public:
KScreenOSDUtil(QObject *parent = nullptr);
Q_INVOKABLE void showKScreenOSD();
int outputs() const;
void setOutputs(int _outputs);
Q_SIGNALS:
void outputsChanged();
private:
KScreen::ConfigPtr m_config{nullptr};
int m_outputs{0};
};