mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-06-29 16:19:48 +02:00
fix(property-editor): use QLocale territory API instead of deprecated country calls
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user