← Back to team overview

touch-packages team mailing list archive

[Bug 1355901] Re: Empty cards attributes are ignored

 

learned on irc one needs to have declare the attributes like this:
"attributes": {"field": "attributes", "max-count": 4},

And then have a tuple with an empty "Value" key to act I guess like a newline, like this, which works:
        us::VariantBuilder attrs;
        attrs.add_tuple({
            {"value", us::Variant(date_s.toStdString())}
        });
        attrs.add_tuple({
            {"value", us::Variant("")}
        });
        attrs.add_tuple({
            {"value", us::Variant(time_s.toStdString())}
        });
        attrs.add_tuple({
            {"value", us::Variant("")}
        });
        res["attributes"] = attrs.end()

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1355901

Title:
  Empty cards attributes are ignored

Status in QML plugin for Scopes:
  Invalid
Status in The Unity 8 shell:
  Fix Released
Status in “unity8” package in Ubuntu:
  Fix Released
Status in “unity8” package in Ubuntu RTM:
  Fix Released

Bug description:
  Empty cards attributes, which should be used for attributes layouting,
  are currently ignored.

  [{"style": "highlighted", "value": "$0.55"}, {"value": " "}, {"value":
  " "}, {"value": "10m"}] shows only one line of attributes instead of
  the expected two.

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-scopes-shell/+bug/1355901/+subscriptions