mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Adds an experience for users on first login, allowing some basic configuration. This is separate from a first start wizard, which would run as a separate user with elevated permissions, and include options that an installer would have.
34 lines
728 B
C++
34 lines
728 B
C++
// SPDX-FileCopyrightText: 2023 by Devin Lin <devin@kde.org>
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QProcess>
|
|
|
|
class PrepareUtil : public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY(int scaling READ scaling WRITE setScaling NOTIFY scalingChanged);
|
|
Q_PROPERTY(QStringList scalingOptions READ scalingOptions CONSTANT);
|
|
|
|
public:
|
|
PrepareUtil(QObject *parent = nullptr);
|
|
|
|
int scaling() const;
|
|
void setScaling(int scaling);
|
|
|
|
QStringList scalingOptions();
|
|
|
|
Q_SIGNALS:
|
|
void scalingChanged();
|
|
|
|
public Q_SLOTS:
|
|
void receiveScalingFactor(int exitCode, QProcess::ExitStatus exitStatus);
|
|
|
|
private:
|
|
int m_scaling;
|
|
QString m_display;
|
|
|
|
QProcess *m_process;
|
|
};
|