On 08/03/2017 09:20, Gerry Boland wrote:
> Review: Needs Information
>
> +{
> + if (value != m_allowClientResize) {
> + DEBUG_MSG << "("<<value<<")";
> + m_allowClientResize = value;
> + Q_EMIT allowClientResizeChanged(m_allowClientResize);
> + if (m_surface) {
> + m_surface->setAllowClientResize(value);
> + }
> + }
> Why emit the signal before doing the operation? Typically a signal is emitted after the new state has been applied.
>
Because m_allowClientResize is already changed, which is what the getter
uses. Anyway, moved the signal emission to the bottom.
On 08/03/2017 09:20, Gerry Boland wrote: size) { zeChanged( m_allowClientRe size); >setAllowClient Resize( value);
> Review: Needs Information
>
> +{
> + if (value != m_allowClientRe
> + DEBUG_MSG << "("<<value<<")";
> + m_allowClientResize = value;
> + Q_EMIT allowClientResi
> + if (m_surface) {
> + m_surface-
> + }
> + }
> Why emit the signal before doing the operation? Typically a signal is emitted after the new state has been applied.
>
Because m_allowClientResize is already changed, which is what the getter
uses. Anyway, moved the signal emission to the bottom.