diff --git a/crates/cxx-qt-lib-extras/src/core/qlocale.rs b/crates/cxx-qt-lib-extras/src/core/qlocale.rs index 156c558ab..617c3b8b6 100644 --- a/crates/cxx-qt-lib-extras/src/core/qlocale.rs +++ b/crates/cxx-qt-lib-extras/src/core/qlocale.rs @@ -518,6 +518,7 @@ mod ffi { /// Returns a native name of the territory for the locale. For example "EspaƱa" for Spanish/Spain locale. #[rust_name = "native_territory_name"] + #[cfg(cxxqt_qt_version_major = "6")] fn nativeTerritoryName(self: &QLocale) -> QString; }