Re: [Interest] QMap and thread-safe.

2013-07-25 Thread Mandeep Sandhu
On Fri, Jul 26, 2013 at 11:57 AM, Sze Howe Koh wrote: > On 26 July 2013 12:57, Mandeep Sandhu wrote: > > On Thu, Jul 25, 2013 at 9:04 PM, Thiago Macieira < > thiago.macie...@intel.com> > >> int inc(int &foo) > >> { > >> return foo++; // not atomic anywhere > > > > > > Why? Because of the way

Re: [Interest] QMap and thread-safe.

2013-07-25 Thread Mandeep Sandhu
On Thu, Jul 25, 2013 at 9:04 PM, Thiago Macieira wrote: > On quinta-feira, 25 de julho de 2013 13:40:55, Mandeep Sandhu wrote: > > > If that increment was not atomically implemented (and to be honest, > right > > > now I don't know whether a "foo++" is atomic - I don't think it is, is > > > it?) >

[Interest] QUndoView Icons

2013-07-25 Thread Jonathan Greig
Is it possible to set icons other than the "clean" icon? I would like to do this but it doesn't appear that there is an easy way. - Swyped from my droid. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/inter

Re: [Interest] QMap and thread-safe.

2013-07-25 Thread Thiago Macieira
On quinta-feira, 25 de julho de 2013 13:40:55, Mandeep Sandhu wrote: > > If that increment was not atomically implemented (and to be honest, right > > now I don't know whether a "foo++" is atomic - I don't think it is, is > > it?) > > and again two threads > > Atomicity of foo++ would depend on th

Re: [Interest] GUI help/opinion check boxes

2013-07-25 Thread André Somers
Op 25-7-2013 10:15, Graham Labdon schreef: Hi As part of my application the user needs to be able to select from a set of up to 64 options. Any combination is allowed and I need a method of selecting/de-selecting all of the options. As a starting point I am showing (up to) 64 check boxes b

[Interest] GUI help/opinion check boxes

2013-07-25 Thread Graham Labdon
Hi As part of my application the user needs to be able to select from a set of up to 64 options. Any combination is allowed and I need a method of selecting/de-selecting all of the options. As a starting point I am showing (up to) 64 check boxes but by default these are 'ticked' which does not l

Re: [Interest] QMap and thread-safe.

2013-07-25 Thread Mandeep Sandhu
On Thu, Jul 25, 2013 at 12:59 PM, Till Oliver Knoll < till.oliver.kn...@gmail.com> wrote: > I think the answer has already been given with regards to "mutable" and > "const_cast", but at least I seem to have missed at least one reply (sent > in private?) in this > No, no private replies to me at

Re: [Interest] QMap and thread-safe.

2013-07-25 Thread Till Oliver Knoll
I think the answer has already been given with regards to "mutable" and "const_cast", but at least I seem to have missed at least one reply (sent in private?) in this discussion. So here are my thoughts :) Am 24.07.2013 um 09:29 schrieb Mandeep Sandhu : > ... > Also, doesn't a "const" (old sens