Re: [Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-20 Thread Thiago Macieira
On quarta-feira, 19 de dezembro de 2012 10.50.37, Olivier Goffart wrote: > Could you explain why it was a bad idea? > > It required few hacks, but that was transparent to the user. Because: > > It required renaming the class on Mac anyway. -- Thiago Macieira - thiago.macieira (AT) intel.com

Re: [Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-19 Thread Alan Alpert
On Wed, Dec 19, 2012 at 5:06 AM, André Somers wrote: > Op 19-12-2012 12:46, Stephen Kelly schreef: >> On Wednesday, December 19, 2012 08:57:31 André Somers wrote: >> >>> My preference is D, obviously. I think it makes a lot of sense to be >>> able to use actions in core, non-GUI layers of the appl

Re: [Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-19 Thread André Somers
Op 19-12-2012 12:46, Stephen Kelly schreef: > On Wednesday, December 19, 2012 08:57:31 André Somers wrote: > >> My preference is D, obviously. I think it makes a lot of sense to be >> able to use actions in core, non-GUI layers of the application. > Qt is primarily for creating Guis. I sympathise w

Re: [Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-19 Thread Stephen Kelly
On Wednesday, December 19, 2012 08:57:31 André Somers wrote: > Op 18-12-2012 20:34, Shawn Rutledge schreef: > > On 18 December 2012 20:05, Mark wrote: > >> On Tue, Dec 18, 2012 at 6:46 PM, Alan Alpert <4163654...@gmail.com> wrote: > >>> D) QCoreAction is added to Core or Gui and has even less > >>

Re: [Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-19 Thread Stephen Kelly
On Wednesday, December 19, 2012 10:25:24 Alberto Mardegan wrote: > On 12/18/2012 06:46 PM, Alan Alpert wrote: > [...] > > > C) QGuiAction is added to Gui and is used to create the QML API and > > the bridge with QActions. > > [...] > > > My favorite of those is C), but there is the unresolved qu

Re: [Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-19 Thread Olivier Goffart
On Tuesday 18 December 2012 23:43:59 Thiago Macieira wrote: > On terça-feira, 18 de dezembro de 2012 23.19.50, Olivier Goffart wrote: > > On Tuesday 18 December 2012 10:20:39 Thiago Macieira wrote: > > > On terça-feira, 18 de dezembro de 2012 09.46.13, Alan Alpert wrote: > > > > B) QAction is moved

Re: [Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-19 Thread Alberto Mardegan
On 12/18/2012 06:46 PM, Alan Alpert wrote: [...] > C) QGuiAction is added to Gui and is used to create the QML API and > the bridge with QActions. [...] > > My favorite of those is C), but there is the unresolved question of > how to make an effective bridge given that we can no longer make > QActi

Re: [Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-18 Thread André Somers
Op 18-12-2012 20:34, Shawn Rutledge schreef: > On 18 December 2012 20:05, Mark wrote: >> On Tue, Dec 18, 2012 at 6:46 PM, Alan Alpert <4163654...@gmail.com> wrote: >>> D) QCoreAction is added to Core or Gui and has even less >>> functionality, QQuickAction and QAction/QGuiAction build on top of >>

Re: [Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-18 Thread Thiago Macieira
On terça-feira, 18 de dezembro de 2012 23.19.50, Olivier Goffart wrote: > On Tuesday 18 December 2012 10:20:39 Thiago Macieira wrote: > > On terça-feira, 18 de dezembro de 2012 09.46.13, Alan Alpert wrote: > > > B) QAction is moved to Gui and is used to create the QML API. > > > > You can't do that

Re: [Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-18 Thread Olivier Goffart
On Tuesday 18 December 2012 10:20:39 Thiago Macieira wrote: > On terça-feira, 18 de dezembro de 2012 09.46.13, Alan Alpert wrote: > > B) QAction is moved to Gui and is used to create the QML API. > > You can't do that. > > QAction is QtWidgets and that's where it will stay until Qt 6. We moved Q

Re: [Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-18 Thread Shawn Rutledge
On 18 December 2012 20:05, Mark wrote: > On Tue, Dec 18, 2012 at 6:46 PM, Alan Alpert <4163654...@gmail.com> wrote: >> >> D) QCoreAction is added to Core or Gui and has even less >> functionality, QQuickAction and QAction/QGuiAction build on top of >> that to fill out their API. > > Another option

Re: [Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-18 Thread Mark
On Tue, Dec 18, 2012 at 6:46 PM, Alan Alpert <4163654...@gmail.com> wrote: > Summary of the topic so far: > > Existing and future Applications have a need for managing actions in > C++, and these need to be the same actions as QML is dealing with. How > do we implement this? > > Here are the four o

Re: [Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-18 Thread Thiago Macieira
On terça-feira, 18 de dezembro de 2012 09.46.13, Alan Alpert wrote: > B) QAction is moved to Gui and is used to create the QML API. You can't do that. QAction is QtWidgets and that's where it will stay until Qt 6. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Op

[Development] Integrating QAction and the upcoming QML Action (was QAction-like API for QML)

2012-12-18 Thread Alan Alpert
Summary of the topic so far: Existing and future Applications have a need for managing actions in C++, and these need to be the same actions as QML is dealing with. How do we implement this? Here are the four options I recall being suggested so far, A) QQuickAction is added to create the QML API