avoid deprecation warnings

This commit is contained in:
Uwe Rathmann 2023-11-15 11:52:07 +01:00
parent 68cca6a53c
commit 16754b4f9d

View File

@ -116,7 +116,14 @@ namespace
case QLocale::English:
{
switch ( locale.country() )
const auto territory =
#if QT_VERSION >= QT_VERSION_CHECK( 6, 2, 0 )
locale.territory();
#else
locale.country();
#endif
switch ( territory )
{
case QLocale::Canada:
case QLocale::UnitedStates: