MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / languageRowChanged

Method languageRowChanged

launcher/ui/widgets/LanguageSelectionWidget.cpp:61–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void LanguageSelectionWidget::languageRowChanged(const QModelIndex& current, const QModelIndex& previous)
62{
63 if (current == previous)
64 {
65 return;
66 }
67 auto translations = APPLICATION->translations();
68 QString key = translations->data(current, Qt::UserRole).toString();
69 translations->selectLanguage(key);
70 translations->updateLanguage(key);
71}
72
73void LanguageSelectionWidget::languageSettingChanged(const Setting &, const QVariant)
74{

Callers

nothing calls this directly

Calls 5

translationsMethod · 0.80
selectLanguageMethod · 0.80
updateLanguageMethod · 0.80
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected