Re: ThreadWeaver: using QObject's as Jobs

2014-11-25 Thread Mirko Boehm
On 25 Nov 2014, at 17:51, Thiago Macieira wrote: > > On Tuesday 25 November 2014 12:07:27 Milian Wolff wrote: >> On Monday 24 November 2014 19:28:57 Thiago Macieira wrote: >>> …. >> >> This object lives in the ThreadWeaver namespace, so that should be fine, no? >> It's decorating a QObject after

Re: ThreadWeaver: using QObject's as Jobs

2014-11-25 Thread Mirko Boehm
On 25 Nov 2014, at 04:28, Thiago Macieira wrote: > >> The decorator wraps and object and acts as a QObject. It does not really >> care if the wrapped job is a QObject already. It will add defined signals >> to the job. > > Please don't create new classes named Q + Capital letter unless you're d

Re: ThreadWeaver: using QObject's as Jobs

2014-11-25 Thread Thiago Macieira
On Tuesday 25 November 2014 12:07:27 Milian Wolff wrote: > On Monday 24 November 2014 19:28:57 Thiago Macieira wrote: > > On Monday 24 November 2014 23:00:45 Mirko Boehm wrote: > > > > Can I inherit from QObjectDecorator and pass "this" as the > > > > JobInterface > > > > *decoratee? > > > > > > T

Re: ThreadWeaver: using QObject's as Jobs

2014-11-25 Thread Milian Wolff
On Monday 24 November 2014 23:00:45 Mirko Boehm wrote: > Hi Milian! > > Man, I totally thought this is absolutely intuitive :-) I will write > something up as a blog post over the weekend. In the meantime, I am trying > to answer your question below. > > > On 24 Nov 2014, at 01:57, Milian Wolff w

Re: ThreadWeaver: using QObject's as Jobs

2014-11-25 Thread Milian Wolff
On Monday 24 November 2014 19:28:57 Thiago Macieira wrote: > On Monday 24 November 2014 23:00:45 Mirko Boehm wrote: > > > Can I inherit from QObjectDecorator and pass "this" as the JobInterface > > > *decoratee? > > > > The decorator wraps and object and acts as a QObject. It does not really > > c

Re: ThreadWeaver: using QObject's as Jobs

2014-11-24 Thread Thiago Macieira
On Monday 24 November 2014 23:00:45 Mirko Boehm wrote: > > Can I inherit from QObjectDecorator and pass "this" as the JobInterface > > *decoratee? > > The decorator wraps and object and acts as a QObject. It does not really > care if the wrapped job is a QObject already. It will add defined signa

Re: ThreadWeaver: using QObject's as Jobs

2014-11-24 Thread Mirko Boehm
Hi Milian! Man, I totally thought this is absolutely intuitive :-) I will write something up as a blog post over the weekend. In the meantime, I am trying to answer your question below. > On 24 Nov 2014, at 01:57, Milian Wolff wrote: > > Could you please document, e.g. by adding another examp