mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 06:33:09 +00:00
30 lines
596 B
C
30 lines
596 B
C
|
|
/*
|
||
|
|
* SPDX-FileCopyrightText: 2022 by Devin Lin <devin@kde.org>
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
|
*/
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <QObject>
|
||
|
|
|
||
|
|
#include "kscreeninterface.h"
|
||
|
|
|
||
|
|
class ScreenRotationUtil : public QObject
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
Q_PROPERTY(bool screenRotationEnabled READ screenRotation WRITE setScreenRotation NOTIFY screenRotationChanged);
|
||
|
|
|
||
|
|
public:
|
||
|
|
ScreenRotationUtil(QObject *parent = nullptr);
|
||
|
|
|
||
|
|
bool screenRotation();
|
||
|
|
void setScreenRotation(bool value);
|
||
|
|
|
||
|
|
Q_SIGNALS:
|
||
|
|
void screenRotationChanged(bool value);
|
||
|
|
|
||
|
|
private:
|
||
|
|
org::kde::KScreen *m_kscreenInterface;
|
||
|
|
};
|