#include "qxtlanguagecombobox.h"
#include "qxtlanguagecombobox_p.h"
#include <QDir>
#include <QApplication>
Go to the source code of this file.
Classes | |
class | Language |
class | LanguageModel |
Typedefs | |
typedef QList< Language > | LanguageList |
Functions | |
static QStringList | findQmFiles (const QString &pathToTranslations) |
typedef QList<Language> LanguageList |
Definition at line 31 of file qxtlanguagecombobox.cpp.
static QStringList findQmFiles | ( | const QString & | pathToTranslations ) | [static] |
Definition at line 35 of file qxtlanguagecombobox.cpp.
Referenced by Language::getTrLanguages().
{ QDir dir(pathToTranslations); QStringList fileNames = dir.entryList(QStringList("*.qm"), QDir::Files, QDir::Name); QMutableStringListIterator i(fileNames); while (i.hasNext()) { i.next(); int start = i.value().indexOf('_'); int end = i.value().lastIndexOf('.'); QString s = i.value().mid(start + 1, end - start - 1).toLower(); i.setValue(s); } return fileNames; }