Use new api calls for calculating pixel size and physical size of multi-display setups after some existing apis have been deprecated in Android API 30 and 31. Also, do the physical size calculation outside of the supported modes loop. As for the physical size, this patch still uses xdpi/ydpi for the calculation instead of densityDpi as suggested in [1] because from testing few scenarios, the results returned from xdpi/ydpi are more consistent with physical device specs. [1] https://issuetracker.google.com/issues/194120500 Pick-to: 6.6 6.5 Task-number: QTBUG-112742 Change-Id: I0c8ef5185c8b6463830b528374954c324a32d657 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io> |
||
|---|---|---|
| .. | ||
| jar | ||
| java | ||
| templates | ||
| CMakeLists.txt | ||