forked from qt-creator/qt-creator
qmlpreview: fix calling right localeIsoCode method
Also add some QTC_CHECK to get at least some warning in case the functions are renamed in future. Change-Id: Ie4e78855152e9946950603c95fa881755e850c62 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -95,7 +95,7 @@ void QmlMultiLanguageAspect::setCurrentLocale(const QString &locale)
|
||||
return;
|
||||
m_currentLocale = locale;
|
||||
if (auto previewPlugin = getPreviewPlugin())
|
||||
previewPlugin->setProperty("locale", locale);
|
||||
previewPlugin->setProperty("localeIsoCode", locale);
|
||||
}
|
||||
|
||||
QString QmlMultiLanguageAspect::currentLocale() const
|
||||
|
||||
Reference in New Issue
Block a user