Fix build with -disable-deprecated-up-to


The cursorSurfaceRequest signal is removed in this case, but we were
trying to connect to it unconditionally.

Add the same #if QT_DEPRECATED_SINCE as the header to fix this.

Amends bf60784393552a605d166330d3fdc87e900e8a0b.

Pick-to: 6.10 6.9 6.8
Change-Id: Ibf9aee069f333df3d15016e744b572ef6c4c9dab
Reviewed-by: David Redondo <qt@david-redondo.de>
commit07f81efabf8192c991efacb61cdd867f936751ac
parentc258d5cb0a42b32e935df1cd142be9457dc050c8
authorAurélien Brooke <aurelien@bahiasoft.fr>
committerAurélien Brooke <aurelien@bahiasoft.fr>
commit timeMon, 2 Jun 2025 15:22:24 +0000