PageStack and StackView
Marco Martin
notmart at gmail.com
Mon Nov 24 19:47:26 UTC 2014
On Monday 24 November 2014, Marco Martin wrote:
> > push(page, properties, immediate) → push(item) as a shortcut, or
> > push({item: someItem, immediate: true, properties: {foo: "bar", baz:
> > "bla"} }) which cannot be (easily, if at all?) overloaded to provide
> > legacy support
>
> Uuh, from where the latter syntax of push comes from?
> I don't see any problems overloading push and pop...
ah ok, is StackView that supports it, so that's just fine:
pageStack.push(someItem, {fgcolor: "red", bgcolor: "blue"}, true) would just
wrap internally
stackView.push({item: someItem, immediate: true, properties: {fgcolor: "red",
bgcolor: "blue"}})
so should just work
--
Marco Martin
More information about the Plasma-devel
mailing list