fix QList<Locale::DigitSet> and remove an unnecessary emit.

This commit is contained in:
Giorgos Tsiapaliwkas 2012-01-31 13:09:22 +02:00
parent 4829d45f95
commit e9db43b00a

View File

@ -142,8 +142,13 @@ QString Locale::translateQt(const char *context, const char *sourceText, const c
QList<Locale::DigitSet> Locale::allDigitSetsList() const
{
//TODO
return m_locale->allDigitSetsList();
QList<Locale::DigitSet> digitList;
foreach(KLocale::DigitSet digit, m_locale->allDigitSetsList()) {
digitList.append((Locale::DigitSet)digit);
}
return digitList;
}
QString Locale::digitSetToName(Locale::DigitSet digitSet, bool withDigits) const
@ -198,7 +203,6 @@ QString Locale::thousandsSeparator() const
QString Locale::currencySymbol() const
{
emit currencySymbolChanged();
return m_locale->currencySymbol();
}