Fix the emit

This commit is contained in:
Giorgos Tsiapaliwkas 2012-04-24 23:14:30 +03:00
parent 17265ad14c
commit 2bf1971ad4
2 changed files with 3 additions and 13 deletions

View File

@ -36,14 +36,15 @@ Locale::Locale(QObject* parent)
bool Locale::setCountryDivisionCode(const QString &countryDivisionCode)
{
bool ok = m_locale->setCountryDivisionCode(countryDivisionCode);
emit countryDivisionCodeChanged();
return m_locale->setCountryDivisionCode(countryDivisionCode);
return ok;
}
void Locale::setCurrencyCode(const QString &newCurrencyCode)
{
emit currencyCodeChanged();
m_locale->setCurrencyCode(newCurrencyCode);
emit currencyCodeChanged();
}
bool Locale::isApplicationTranslatedInto(const QString &lang)

View File

@ -850,17 +850,6 @@ public:
*/
int weekDayOfPray() const;
/**
* What should I do with the above?
* It won't work in QML.
**/
/**
* Returns a pointer to the calendar system object.
*
* @return the current calendar system instance
*/
/**
*
* Returns the type of Calendar System used in this Locale