Re: QActions in QML

2012-11-22 Thread Dmitry A. Ashkadov
"Sebastian Kügler" Кому: kde-core-de...@kde.org, plasma-devel@kde.org Отправленные: Вторник, 30 Октябрь 2012 г 20:47:30 Тема: Re: QActions in QML On Sunday, October 28, 2012 22:33:55 Daker Fernandes Pinheiro wrote: > This just worked: > http://paste.kde.org/584660/ > Where QAct

Re: QActions in QML

2012-10-30 Thread Sebastian Kügler
On Sunday, October 28, 2012 22:33:55 Daker Fernandes Pinheiro wrote: > This just worked: > http://paste.kde.org/584660/ > Where QAction is > http://paste.kde.org/584672/ I saw that, but you're cheating :) Creating a new Type that wraps QAction is always possible, but it's not a good solution. A

Re: QActions in QML

2012-10-30 Thread Kevin Krammer
On Tuesday, 2012-10-30, Sebastian Kügler wrote: > On Tuesday, October 30, 2012 16:01:37 Kevin Krammer wrote: > > In any case, I am curious what the use case of triggering a UI action is? > > I mean any imperative portion of the QML could just invoke the script > > function the action's onTriggered

Re: QActions in QML

2012-10-30 Thread Sebastian Kügler
On Tuesday, October 30, 2012 16:01:37 Kevin Krammer wrote: > On Tuesday, 2012-10-30, Sebastian Kügler wrote: > > On Monday, October 29, 2012 13:46:18 Marco Martin wrote: > > > On Monday 29 October 2012, Daker Fernandes Pinheiro wrote: > > > > > > Daker Fernandes Pinheiro > > > > > > http://codecere

Re: QActions in QML

2012-10-30 Thread Kevin Krammer
On Tuesday, 2012-10-30, Sebastian Kügler wrote: > On Monday, October 29, 2012 13:46:18 Marco Martin wrote: > > On Monday 29 October 2012, Daker Fernandes Pinheiro wrote: > > > > > Daker Fernandes Pinheiro > > > > > http://codecereal.blogspot.com > > > > > > > > isn't QAction already registered as

Re: QActions in QML

2012-10-30 Thread Sebastian Kügler
On Monday, October 29, 2012 13:46:18 Marco Martin wrote: > On Monday 29 October 2012, Daker Fernandes Pinheiro wrote: > > > > Daker Fernandes Pinheiro > > > > http://codecereal.blogspot.com > > > isn't QAction already registered as "action" primitive type? > > > > At least not on QtQuick 1.1 > >

Re: QActions in QML

2012-10-29 Thread Marco Martin
On Monday 29 October 2012, Daker Fernandes Pinheiro wrote: > > > Daker Fernandes Pinheiro > > > http://codecereal.blogspot.com > > > > isn't QAction already registered as "action" primitive type? > > At least not on QtQuick 1.1 > not sure if is really qaction or some wrapper class, but http://q

Re: QActions in QML

2012-10-29 Thread Daker Fernandes Pinheiro
2012/10/28 Aleix Pol > On Mon, Oct 29, 2012 at 1:33 AM, Daker Fernandes Pinheiro > wrote: > > Sebas, > > > > This just worked: > > http://paste.kde.org/584660/ > > Where QAction is > > http://paste.kde.org/584672/ > > > > Cheers, > > > > Daker Fernandes Pinheiro > > http://codecereal.blogspot.co

Re: QActions in QML

2012-10-29 Thread Daker Fernandes Pinheiro
2012/10/29 Marco Martin > On Monday 29 October 2012, Daker Fernandes Pinheiro wrote: > > Sebas, > > > > This just worked: > > http://paste.kde.org/584660/ > > Where QAction is > > http://paste.kde.org/584672/ > > > > Cheers, > > > > Daker Fernandes Pinheiro > > http://codecereal.blogspot.com > >

Re: QActions in QML

2012-10-29 Thread Marco Martin
On Monday 29 October 2012, Daker Fernandes Pinheiro wrote: > Sebas, > > This just worked: > http://paste.kde.org/584660/ > Where QAction is > http://paste.kde.org/584672/ > > Cheers, > > Daker Fernandes Pinheiro > http://codecereal.blogspot.com > isn't QAction already registered as "action" pr

Re: QActions in QML

2012-10-28 Thread Aleix Pol
On Mon, Oct 29, 2012 at 1:33 AM, Daker Fernandes Pinheiro wrote: > Sebas, > > This just worked: > http://paste.kde.org/584660/ > Where QAction is > http://paste.kde.org/584672/ > > Cheers, > > Daker Fernandes Pinheiro > http://codecereal.blogspot.com > > > 2012/10/28 Sebastian Kügler >> >> On Thu

Re: QActions in QML

2012-10-28 Thread Daker Fernandes Pinheiro
Sebas, This just worked: http://paste.kde.org/584660/ Where QAction is http://paste.kde.org/584672/ Cheers, Daker Fernandes Pinheiro http://codecereal.blogspot.com 2012/10/28 Sebastian Kügler > On Thursday, October 25, 2012 20:00:25 Aaron J. Seigo wrote: > > not automatically, no. but QActio

QActions in QML

2012-10-28 Thread Sebastian Kügler
On Thursday, October 25, 2012 20:00:25 Aaron J. Seigo wrote: > not automatically, no. but QActions are QObjects, so you can attach to their > signals in the QML. And it's quite wonky, for example offering a list of QActions (QDeclarativeListProperty or QList, even with the payload casted to QObje