Replace signals with Q_SIGNALS.

Fixes tst_headers on QtWayland.

Change-Id: I14ba4a58c257d03d10c63f0413460e2bf52793fc
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>