Skip to content

Commit

Permalink
support both qt6 and 5
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkite committed Nov 22, 2021
1 parent 82bdcf5 commit 0cc8162
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions l10n.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,12 @@ void L10n::setLanguage(QString lang) {
}

QList<QString> L10n::getLanguages() {
#if QT_VERSION < 0x060000
return QList<QString>::fromSet(languages);
#else
QList<QString> qList(languages.begin(), languages.end());
return qList;
#endif
}

QString L10n::xlateItem(const QString &key) {
Expand Down

0 comments on commit 0cc8162

Please sign in to comment.