ModBus: do not generate compatibility headers for Qt 7


The qt_deprecates() pragma now has the possibility to set the version
when the deprecated headers would no longer be generated.
Use this feature to stop generating ModBus compatibility headers in
Qt 7.

Change-Id: I8e1fe2cb00a8974d3f58daf42020eef9160fb8ea
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
commit308bf8aef31d1a564eeb458e42349a72f2e95532
parent37df21126dcf94bb5aaaa8f1e41cf458630be86d
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeTue, 25 Jul 2023 18:02:02 +0200