diff --git a/desktop/desktopsettings.cpp b/desktop/desktopsettings.cpp index 59e27d1..c583f4f 100644 --- a/desktop/desktopsettings.cpp +++ b/desktop/desktopsettings.cpp @@ -41,11 +41,6 @@ QString DesktopSettings::wallpaper() const return m_wallpaper; } -bool DesktopSettings::backgroundVisible() const -{ - return m_interface.property("backgroundVisible").toBool(); -} - bool DesktopSettings::dimsWallpaper() const { return m_interface.property("darkModeDimsWallpaer").toBool(); @@ -76,7 +71,6 @@ void DesktopSettings::init() connect(&m_interface, SIGNAL(darkModeDimsWallpaerChanged()), this, SIGNAL(dimsWallpaperChanged())); connect(&m_interface, SIGNAL(backgroundTypeChanged()), this, SIGNAL(backgroundTypeChanged())); connect(&m_interface, SIGNAL(backgroundColorChanged()), this, SIGNAL(backgroundColorChanged())); - connect(&m_interface, SIGNAL(backgroundVisibleChanged()), this, SIGNAL(backgroundVisibleChanged())); m_wallpaper = m_interface.property("wallpaper").toString(); emit wallpaperChanged(); } diff --git a/desktop/desktopsettings.h b/desktop/desktopsettings.h index 7859515..823cc8f 100644 --- a/desktop/desktopsettings.h +++ b/desktop/desktopsettings.h @@ -28,7 +28,6 @@ class DesktopSettings : public QObject Q_OBJECT Q_PROPERTY(QString wallpaper READ wallpaper NOTIFY wallpaperChanged) Q_PROPERTY(bool dimsWallpaper READ dimsWallpaper NOTIFY dimsWallpaperChanged) - Q_PROPERTY(bool backgroundVisible READ backgroundVisible NOTIFY backgroundVisibleChanged) Q_PROPERTY(int backgroundType READ backgroundType NOTIFY backgroundTypeChanged) Q_PROPERTY(QString backgroundColor READ backgroundColor NOTIFY backgroundColorChanged) @@ -37,7 +36,6 @@ public: QString wallpaper() const; bool dimsWallpaper() const; - bool backgroundVisible() const; int backgroundType() const; QString backgroundColor() const; @@ -48,7 +46,6 @@ signals: void dimsWallpaperChanged(); void backgroundColorChanged(); void backgroundTypeChanged(); - void backgroundVisibleChanged(); private slots: void init(); diff --git a/qml/Desktop/Wallpaper.qml b/qml/Desktop/Wallpaper.qml index 182c59b..ae7cdd6 100644 --- a/qml/Desktop/Wallpaper.qml +++ b/qml/Desktop/Wallpaper.qml @@ -26,7 +26,6 @@ Item { Rectangle { anchors.fill: parent - visible: settings.backgroundVisible color: settings.backgroundColor } }