Diffusion Krita 3b75498f79b9

Add new signal/slot connection syntax to KisSignalAutoConnection

Authored by tusooaw on Jun 16 2019, 6:13 AM.

Description

Add new signal/slot connection syntax to KisSignalAutoConnection

  1. Use template to accommodate the new syntax of signal/slot connection.
  1. Instead of the four parameters passed to QObject::connect(), we

store the QMetaObject::Connection returned by connect(), and use that
to disconnect() it afterwards.

  1. There is a unit test to test the auto-(dis)connection, just to

make sure it works with both syntaxes.

  1. There is no need to change any existing code involving

KisSignalAutoConnectionsStore, unless you want to replace the old
syntax with the new one.

Details

Committed
tusooawJun 18 2019, 1:01 PM
Parents
R37:3928c0bb6d0b: Fix layer numbers after switching snapshots
Branches
Unknown
Tags
Unknown