From 7c2ea8b50b492eabc9e9ba4d6dbbb6253f59ba50 Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Thu, 11 Jun 2026 23:15:45 +0200 Subject: [PATCH] fix(property-editor): use QLocale territory API instead of deprecated country calls --- bec_widgets/utils/property_editor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bec_widgets/utils/property_editor.py b/bec_widgets/utils/property_editor.py index 4a395f10..fa32f02c 100644 --- a/bec_widgets/utils/property_editor.py +++ b/bec_widgets/utils/property_editor.py @@ -198,9 +198,9 @@ class PropertyEditor(QWidget): continue if terr_int < 0: continue - text = QLocale.countryToString(QLocale.Country(terr_int)) + text = QLocale.territoryToString(QLocale.Country(terr_int)) country_combo.addItem(text, terr_int) - cur_country = self._enum_int(loc.country()) + cur_country = self._enum_int(loc.territory()) idx = country_combo.findData(cur_country) if idx >= 0: country_combo.setCurrentIndex(idx)