shift-shell/quicksettings/kscreenosd/kscreenosdutil.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
582 B
C
Raw Normal View History

// 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};
};