summaryrefslogtreecommitdiff
path: root/raveos-calamares-module/desktopselect/DesktopBackend.h
diff options
context:
space:
mode:
authorNippy <nippy@Nippy-Mac-mini.local>2026-09-17 16:14:58 +0200
committerNippy <nippy@Nippy-Mac-mini.local>2026-09-17 16:14:58 +0200
commit8839d02e786f5ece0e1a502980fcaada6594e859 (patch)
treed96aa79d2014cbb337ee68f3ca4f554a7cd94edc /raveos-calamares-module/desktopselect/DesktopBackend.h
parentf676fc2bad71c23605c846027a6d3691508075fd (diff)
downloadRaveOS-PKGBUILD-8839d02e786f5ece0e1a502980fcaada6594e859.tar.gz
RaveOS-PKGBUILD-8839d02e786f5ece0e1a502980fcaada6594e859.zip
desktop new/fix
Diffstat (limited to 'raveos-calamares-module/desktopselect/DesktopBackend.h')
-rw-r--r--raveos-calamares-module/desktopselect/DesktopBackend.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/raveos-calamares-module/desktopselect/DesktopBackend.h b/raveos-calamares-module/desktopselect/DesktopBackend.h
index 4ceb6cb..a3d2397 100644
--- a/raveos-calamares-module/desktopselect/DesktopBackend.h
+++ b/raveos-calamares-module/desktopselect/DesktopBackend.h
@@ -8,14 +8,17 @@ class DesktopBackend : public QObject
Q_OBJECT
Q_PROPERTY(QVariantList desktops READ desktops NOTIFY desktopsChanged)
Q_PROPERTY(int selectedIndex READ selectedIndex NOTIFY selectedIndexChanged)
+ Q_PROPERTY(QString locale READ locale WRITE setLocale NOTIFY localeChanged)
public:
explicit DesktopBackend(QObject* parent = nullptr);
QVariantList desktops() const { return m_desktops; }
int selectedIndex() const { return m_selectedIndex; }
+ QString locale() const { return m_locale; }
void setDesktops(const QVariantList& desktops);
+ void setLocale(const QString& locale);
QStringList selectedPackages() const;
Q_INVOKABLE void selectDesktop(int index);
@@ -24,8 +27,13 @@ signals:
void desktopsChanged();
void selectedIndexChanged();
void selectionMade();
+ void localeChanged();
private:
+ void rebuildDesktops();
+
+ QVariantList m_rawDesktops;
QVariantList m_desktops;
int m_selectedIndex = -1;
+ QString m_locale;
};