| 59 | } |
| 60 | |
| 61 | void 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 | |
| 73 | void LanguageSelectionWidget::languageSettingChanged(const Setting &, const QVariant) |
| 74 | { |
nothing calls this directly
no test coverage detected