Re: Why so many QStyles

2015-01-04 Thread Hugo Pereira Da Costa
On 01/04/2015 02:54 PM, David Faure wrote: On Sunday 04 January 2015 13:51:15 David Faure wrote: 2) I can't think of a reason against passing qApp->style() to the KLineEditStyle ctor; the rest of the code in QProxyStyle::ensureBaseStyle is about the -style cmdline override (which qApp->style() h

Re: Why so many QStyles

2015-01-04 Thread David Faure
On Sunday 04 January 2015 13:51:15 David Faure wrote: > 2) I can't think of a reason against passing qApp->style() to the > KLineEditStyle ctor; the rest of the code in QProxyStyle::ensureBaseStyle is > about the -style cmdline override (which qApp->style() honours too). More testing gives a very

Re: Why so many QStyles

2015-01-04 Thread David Faure
On Thursday 02 October 2014 22:10:05 Hugo Pereira Da Costa wrote: > In Qt5 this seems not to be true anymore and I've seen up to 6 QStyle > running concurently for a single Kate Window, increasing to 13 when > opening 'open file' dialog, decreasing back to 6 when closing it, etc. > Is this a know

Re: Why so many QStyles

2014-10-04 Thread Hugo Pereira Da Costa
On 10/04/2014 12:37 PM, Dominik Haumann wrote: On Friday 03 October 2014 00:09:11 Aleix Pol wrote: On Thu, Oct 2, 2014 at 10:10 PM, Hugo Pereira Da Costa wrote: hi all, I guess its a question to Qt experts or possibly low level KF5 experts. When comparing debugging outputs when running app +

Re: Why so many QStyles

2014-10-04 Thread Dominik Haumann
On Friday 03 October 2014 00:09:11 Aleix Pol wrote: > On Thu, Oct 2, 2014 at 10:10 PM, Hugo Pereira Da Costa > wrote: > > > > hi all, > > > > I guess its a question to Qt experts or possibly low level KF5 experts. > > > > When comparing debugging outputs when running app + style against Qt4 and

Re: Why so many QStyles

2014-10-02 Thread Aleix Pol
On Thu, Oct 2, 2014 at 10:10 PM, Hugo Pereira Da Costa wrote: > hi all, > > I guess its a question to Qt experts or possibly low level KF5 experts. > > When comparing debugging outputs when running app + style against Qt4 and > Qt5, I've noticed the following significant difference. > In Qt4, as

Why so many QStyles

2014-10-02 Thread Hugo Pereira Da Costa
hi all, I guess its a question to Qt experts or possibly low level KF5 experts. When comparing debugging outputs when running app + style against Qt4 and Qt5, I've noticed the following significant difference. In Qt4, as far as I can tell, QStyle was only instanciated one per QApp, and deleted