core/qmlglobal: re-add shellRoot as a deprecated property

This commit is contained in:
outfoxxed 2025-07-04 20:06:22 -07:00
parent 3cc7ced3a0
commit 7eff415b25
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -109,6 +109,8 @@ class QuickshellGlobal: public QObject {
/// The root directory is the folder containing the entrypoint to your shell, often referred /// The root directory is the folder containing the entrypoint to your shell, often referred
/// to as `shell.qml`. /// to as `shell.qml`.
Q_PROPERTY(QString configDir READ configDir CONSTANT); Q_PROPERTY(QString configDir READ configDir CONSTANT);
/// > [!WARNING] Deprecated: Returns @@configDir.
Q_PROPERTY(QString shellRoot READ configDir CONSTANT);
/// Quickshell's working directory. Defaults to whereever quickshell was launched from. /// Quickshell's working directory. Defaults to whereever quickshell was launched from.
Q_PROPERTY(QString workingDirectory READ workingDirectory WRITE setWorkingDirectory NOTIFY workingDirectoryChanged); Q_PROPERTY(QString workingDirectory READ workingDirectory WRITE setWorkingDirectory NOTIFY workingDirectoryChanged);
/// If true then the configuration will be reloaded whenever any files change. /// If true then the configuration will be reloaded whenever any files change.