Public bug reported:

If you bind a qml property to a key, the property doesn't get correctly
updated when the key is changed

Example:

"import QtQuick 2.0
import Ubuntu.Components 0.1
import Ubuntu.Components.ListItems 0.1 as ListItem
import GSettings 1.0

MainView {
    width: 300
    height: 450
    GSettings {
        id: desk
        schema.id: "org.gnome.desktop.background"
    }
    ListItem.Standard {
        text: "You can see icons!"
        visible: desk.showDesktopIcons
    }
}"

Doing

"        property bool showTheIcons: desk.showDesktopIcons
    GSettings {
        id: desk
        schema.id: "org.gnome.desktop.background"
        onChanged: { if (key == "showDesktopIcons") showTheIcons = value }
    }
    ListItem.Standard {
        text: "You can see icons!"
        visible: showTheIcons
    }"

works though (e.g using a property)

** Affects: gsettings-qt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1206181

Title:
  the properties don't get updated when the key value changes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gsettings-qt/+bug/1206181/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to