From e9db43b00a0142c6fddeae6695453a96cccf1e3e Mon Sep 17 00:00:00 2001 From: Giorgos Tsiapaliwkas Date: Tue, 31 Jan 2012 13:09:22 +0200 Subject: [PATCH] fix QList and remove an unnecessary emit. --- declarativeimports/locale/locale.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/declarativeimports/locale/locale.cpp b/declarativeimports/locale/locale.cpp index 80b62c0c3..8181dc1be 100644 --- a/declarativeimports/locale/locale.cpp +++ b/declarativeimports/locale/locale.cpp @@ -142,8 +142,13 @@ QString Locale::translateQt(const char *context, const char *sourceText, const c QList Locale::allDigitSetsList() const { - //TODO - return m_locale->allDigitSetsList(); + QList 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(); }