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 _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel