avoid deprecation warnings
This commit is contained in:
parent
68cca6a53c
commit
16754b4f9d
@ -116,7 +116,14 @@ namespace
|
|||||||
|
|
||||||
case QLocale::English:
|
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::Canada:
|
||||||
case QLocale::UnitedStates:
|
case QLocale::UnitedStates:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user