QMouseHandler: fix QObject::connect() call


This connection was created in QMouseHandlerPrivate's constructor,
however at that point the `q_ptr` hadn't been initialized yet, so the
connection's 3rd parameter was null, which produced a runtime warning.

Move the initialization, and other relevant code, of the QTimer member
to init().

Drive-by change: use chrono literals; add missing include.

Amends 7671478aad2d2a48148852e9ce5a5b598a59f23d.

Pick-to: 6.7
Change-Id: I305e740617e83cf8120ffc25c67004a7dbcc1df8
Reviewed-by: David Faure <david.faure@kdab.com>
commit76928231ffa4d6394ace71aa2573293fffac954c
parent23982743174604be213384afeb3a5b10a0af78e3
authorAhmad Samir <a.samirh78@gmail.com>
committerAhmad Samir <a.samirh78@gmail.com>
commit timeThu, 4 Apr 2024 23:15:46 +0000