← Back to team overview

ubuntu-touch-coreapps team mailing list archive

Re: [RSS Reader]

 

Thank you for the feedback!

I will try to implement the functionality I need by dynamically 
creating QML code as proposed in the bug comments. That should do the 
trick until VisualItemModel gets updated upstream.


Svenn-Arne

On Mon 15 Apr 2013 01:34:23 AM CEST, Tim Peeters wrote:
> It seems to be a limitation of the VisualItemModel used in the Tabs
> implementation. See this
> bug: https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1124071
>
> We need to add support for this. Please follow the bug for updates.
>
>
> On Sat, Apr 13, 2013 at 7:43 PM, Svenn-Arne Dragly <s@xxxxxxxxxx
> <mailto:s@xxxxxxxxxx>> wrote:
>
>     Hi,
>
>     I'm trying to test out tabbed navigation for the RSS reader, where I
>     would like to switch between different feeds by swiping left/right.
>     However, I can't seem to find any way to implement dynamic
>     adding/removal of tabs in the Ubuntu Tabs component.
>
>     Currently, I'm stuck with making a long list of tabs in the Tabs
>     component to be able to at least set them dynamically by accessing
>     ourTabs.__tabsModel.children[i]. This does however not seem like a
>     very
>     good solution:
>
>     ...
>
>         function refresh() {
>             ...
>                 ourTabs.__tabsModel.children[i].title = feed.displayName
>             ...
>         }
>         Tabs {
>             id: ourTabs
>             anchors.fill: parent
>
>             Tab {}
>             Tab {}
>             Tab {}
>             Tab {}
>             ...
>         }
>
>     ...
>
>     Do you know of a better way to add/remove tabs dynamically?
>
>
>     Cheers,
>     Svenn-Arne
>
>
>     --
>     Mailing list: https://launchpad.net/~ubuntu-touch-coreapps
>     Post to     : ubuntu-touch-coreapps@xxxxxxxxxxxxxxxxxxx
>     <mailto:ubuntu-touch-coreapps@xxxxxxxxxxxxxxxxxxx>
>     Unsubscribe : https://launchpad.net/~ubuntu-touch-coreapps
>     More help   : https://help.launchpad.net/ListHelp
>
>


References