Remove usages of deprecated APIs


- Fixed the build with disabled deprecated APIs.

- Made the docs for deprecated APIs to compile conditionally,
  based on the deprecation version.

Task-number: QTBUG-76491
Change-Id: I38fbd84254d3d35b2bc208994c9fd70142450ad8
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
commitb97dd9ea7a8e9aeeb63dcf173afa722f37d9a573
parentad2628329e1685dbccd0ac3c5011336cd2c4f786
authorSona Kurazyan <sona.kurazyan@qt.io>
committerSona Kurazyan <sona.kurazyan@qt.io>
commit timeMon, 5 Aug 2019 14:40:35 +0200