ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #02690
Re: [Ubuntu-touch-coreapps] [Ubuntu-tool-kit] dynamic Tab creation in Tabs
Hi,
I already got rid of the VisualItemModel in the Tabs implementation.
Dynamic tabs is still something that needs work, see this bug:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1124071
It has high priority and I will try to work on it as soon as possible
(after finishing working on bugs with "Critical" priority).
Tim.
On Mon, Jul 1, 2013 at 12:17 PM, <mrqtros@xxxxxxxxx> wrote:
> Of course this functionality is necessary, all troubles now are connected
> with using of VisualItemModel. Control must be rewritten with more usable
> model in my opinion.
>
> 01.07.13 13:49 Joey Chan написал(а):
> Hi Geeks,
>
> I'm a member in RSS reader team.
>
> What I am doing now is creating dynamic Tabs for different topics.
> *Solution 1: ( fail )*
> <code>
>
> var component;
>
> var sprite;
>
> component = Qt.createComponent("./TabTest.qml");
>
> sprite = component.createObject(tabs, {});
>
> </code>
> I think the reason is that, the Tab is not the child of the Tabs, but
> maybe the child of Tabs.tabsModel
>
> *Solution 2: ( success )*
> <code>
>
> Repeater // at the end inside the Tabs
>
> {
>
> id: repeater
>
> model: 2
>
> Tab{ title: i18n.tr("test") }
>
> }
>
> </code>
> I found this solution in Tabs's source code, but not easy to manage
> them(tabs)
>
> *Opinion:*
> Is it possible to add some functions in Tabs? like: addTab(Item),
> TabAt(index), etc.. I think it will be an easy way to manage dynamic tabs
>
> BR,
> Joey
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help : https://help.launchpad.net/ListHelp
>
>
References