forked from organicmaps/organicmaps-tmp
[qt] Exclude service languages from map language menu
Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
This commit is contained in:
parent
4227cbe3b8
commit
1e8a52c6ca
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ namespace qt
|
|||
// So we ensure that it returns false here.
|
||||
mapLanguageComboBox->setStyleSheet("QComboBox { combobox-popup: 0; }");
|
||||
mapLanguageComboBox->setMaxVisibleItems(10);
|
||||
StringUtf8Multilang::Languages const & supportedLanguages = StringUtf8Multilang::GetSupportedLanguages();
|
||||
StringUtf8Multilang::Languages const & supportedLanguages = StringUtf8Multilang::GetSupportedLanguages(/* includeServiceLangs */ false);
|
||||
QStringList languagesList = QStringList();
|
||||
for (auto const & language : supportedLanguages)
|
||||
languagesList << QString::fromStdString(std::string(language.m_name));
|
||||
|
|
Loading…
Add table
Reference in a new issue