Re: [Development] Proposal: expose the OS/platform in QML

2013-01-21 Thread Nurmi J-P
> -Original Message- > From: Alan Alpert [mailto:4163654...@gmail.com] > Sent: 17. tammikuuta 2013 18:24 > To: Nurmi J-P > Cc: development@qt-project.org > Subject: Re: [Development] Proposal: expose the OS/platform in QML > > > I had the impression that pl

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-17 Thread Alan Alpert
On Thu, Jan 17, 2013 at 2:42 AM, Nurmi J-P wrote: >> On Wed, Jan 16, 2013 at 9:14 AM, Mohamed Fawzi >> wrote: >> > >> > On 16 Jan 2013, at 17:37, Alan Alpert <4163654...@gmail.com> >> > wrote: >> > >> >> On Wed, Jan 16, 2013 at 2:22 AM, Rutledge Shawn >> >> wrote: >> >>> On 16 Jan 2013, at 8:21

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-17 Thread Nurmi J-P
> On Wed, Jan 16, 2013 at 9:14 AM, Mohamed Fawzi > wrote: > > > > On 16 Jan 2013, at 17:37, Alan Alpert <4163654...@gmail.com> > > wrote: > > > >> On Wed, Jan 16, 2013 at 2:22 AM, Rutledge Shawn > >> wrote: > >>> On 16 Jan 2013, at 8:21 AM, Bache-Wiig Jens wrote: > >>> > True. It is exactly

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-16 Thread Joseph Crowell
On 01/17/2013 04:34 AM, Shawn Rutledge wrote: > On Wed, Jan 16, 2013 at 08:37:27AM -0800, Alan Alpert wrote: >> I can't find the current docs, but the mobility APIs already exposed a >> wealth of system information in the SystemInfo plugin: >> http://doc.qt.digia.com/qtmobility/qml-systeminfo.html

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-16 Thread Alan Alpert
On Wed, Jan 16, 2013 at 10:34 AM, Shawn Rutledge wrote: > On Wed, Jan 16, 2013 at 08:37:27AM -0800, Alan Alpert wrote: >> I can't find the current docs, but the mobility APIs already exposed a >> wealth of system information in the SystemInfo plugin: >> http://doc.qt.digia.com/qtmobility/qml-syste

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-16 Thread Shawn Rutledge
On Wed, Jan 16, 2013 at 08:37:27AM -0800, Alan Alpert wrote: > I can't find the current docs, but the mobility APIs already exposed a > wealth of system information in the SystemInfo plugin: > http://doc.qt.digia.com/qtmobility/qml-systeminfo.html . The right > place for all this more device genera

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-16 Thread Alan Alpert
On Wed, Jan 16, 2013 at 9:14 AM, Mohamed Fawzi wrote: > > On 16 Jan 2013, at 17:37, Alan Alpert <4163654...@gmail.com> > wrote: > >> On Wed, Jan 16, 2013 at 2:22 AM, Rutledge Shawn >> wrote: >>> On 16 Jan 2013, at 8:21 AM, Bache-Wiig Jens wrote: >>> True. It is exactly what we would use to

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-16 Thread Mohamed Fawzi
On 16 Jan 2013, at 17:37, Alan Alpert <4163654...@gmail.com> wrote: > On Wed, Jan 16, 2013 at 2:22 AM, Rutledge Shawn > wrote: >> On 16 Jan 2013, at 8:21 AM, Bache-Wiig Jens wrote: >> >>> True. It is exactly what we would use to implement the platform selector. >>> But it can also be more pow

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-16 Thread Alan Alpert
On Wed, Jan 16, 2013 at 2:22 AM, Rutledge Shawn wrote: > On 16 Jan 2013, at 8:21 AM, Bache-Wiig Jens wrote: > >> True. It is exactly what we would use to implement the platform selector. >> But it can also be more powerful than that because it makes it possible to >> implement your own platform

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-16 Thread Rutledge Shawn
On 16 Jan 2013, at 8:21 AM, Bache-Wiig Jens wrote: > True. It is exactly what we would use to implement the platform selector. But > it can also be more powerful than that because it makes it possible to > implement your own platform selectors if you disagree with whatever mechanism > we come u

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-16 Thread Sorvig Morten
On Jan 16, 2013, at 9:22 AM, Bache-Wiig Jens wrote: >>> >>> Second, it would be useful to know if I am on a "phone", "tablet" or >>> "desktop" platform. ( can already guess by the resolution but perhaps it >>> would be convenient to abstract it a bit. >> >> These days you can't really tell f

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-16 Thread Bache-Wiig Jens
>> >> Second, it would be useful to know if I am on a "phone", "tablet" or >> "desktop" platform. ( can already guess by the resolution but perhaps it >> would be convenient to abstract it a bit. > > These days you can't really tell from the resolution :) But I don't > think Qt currently has a

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-15 Thread Robin Burchell
On Wed, Jan 16, 2013 at 8:49 AM, Samuel Rødal wrote: > These days you can't really tell from the resolution :) But I don't > think Qt currently has a way to distinguish xcb/wayland running on a > tablet vs a desktop, or eglfs running on a phone vs a tablet. How would > a typical Android applicatio

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-15 Thread Samuel Rødal
On 01/16/2013 08:21 AM, Bache-Wiig Jens wrote: > > On Jan 15, 2013, at 6:38 PM, Attila Csipa wrote: > >> On 15/01/13 18:27, Nurmi J-P wrote: >>> What do you think about exposing the underlying operating system and/or >>> platform name in QML? >>> ... >>> Which one of these proposals do you like t

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-15 Thread Bache-Wiig Jens
On Jan 15, 2013, at 6:38 PM, Attila Csipa wrote: > On 15/01/13 18:27, Nurmi J-P wrote: >> What do you think about exposing the underlying operating system and/or >> platform name in QML? >> ... >> Which one of these proposals do you like the most, or are you against the >> whole idea? > > In

Re: [Development] Proposal: expose the OS/platform in QML

2013-01-15 Thread Attila Csipa
On 15/01/13 18:27, Nurmi J-P wrote: > What do you think about exposing the underlying operating system and/or > platform name in QML? > ... > Which one of these proposals do you like the most, or are you against the > whole idea? In my eyes the real question is that comes after this one - once y

[Development] Proposal: expose the OS/platform in QML

2013-01-15 Thread Nurmi J-P
Hi all, What do you think about exposing the underlying operating system and/or platform name in QML? Whilst separating platform specific things to separate files (alike "platform content selection") is probably a good solution in general, it sounds a bit overkill for a project like the deskto