Hey Ferran,

ControlObjects can distinguish between changes made to their internal
ControlDoublePrivate made through the ControlObject itself or via another
route (ControlObjectThread, ControlObjectSlave, or the plain old
ControlObject::set() static method).

You'll see that the valueChanged() method from m_pControl (its
ControlDoublePrivate) is connected to privateValueChanged.
privateValueChanged then checks if the sender for the change was itself. If
it is then it rebroadcasts the signal as a valueChangedFromEngine signal.
If not then it rebroadcasts it as a valueChanged signal. So
privateValueChanged is only used as a rebroadcaster of signals from
ControlDoublePrivate.

Hope that helps -- cheers,
RJ


On Wed, Dec 24, 2014 at 2:30 AM, Ferran Pujol Camins <
ferranpujolcam...@gmail.com> wrote:

> I was investigating why BpmControl::slotBpmTap checks that the double
> passed to it is positive and I ended up looking into ControlObject and
> wondered why privateValueChanged is actually used for. I only found it in
> that class.
>
> Could somebody clarify this to me?
>
> --
> Ferran Pujol Camins
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> Get Mixxx, the #1 Free MP3 DJ Mixing software Today
> http://mixxx.org
>
>
> Mixxx-devel mailing list
> Mixxx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to