From 9581c33be21be1608a79281996c4e12834f979f1 Mon Sep 17 00:00:00 2001 From: Giorgos Tsiapaliwkas Date: Mon, 23 Jan 2012 21:16:14 +0200 Subject: [PATCH] fix some typos --- declarativeimports/locale/locale.cpp | 18 +++++------------- declarativeimports/locale/locale.h | 2 +- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/declarativeimports/locale/locale.cpp b/declarativeimports/locale/locale.cpp index f8313e1f1..9349245f2 100644 --- a/declarativeimports/locale/locale.cpp +++ b/declarativeimports/locale/locale.cpp @@ -21,8 +21,6 @@ #include "locale.h" #include -//TODO we need some ctors - Locale::Locale(QObject* parent) : QObject(parent) { @@ -32,32 +30,32 @@ Locale::Locale(QObject* parent) bool Locale::setCountry(const QString &country, KConfig *config) { - return m_locale->setCountry(country, config); emit countryChanged(); + return m_locale->setCountry(country, config); } bool Locale::setCountryDivisionCode(const QString &countryDivisionCode) { - return m_locale->setCountryDivisionCode(countryDivisionCode); emit countryDivisionCodeChanged(); + return m_locale->setCountryDivisionCode(countryDivisionCode); } bool Locale::setLanguage(const QString &language, KConfig *config) { - return m_locale->setLanguage(language, config); emit languageChanged(); + return m_locale->setLanguage(language, config); } bool Locale::setLanguage(const QStringList &languages) { - return m_locale->setLanguage(languages); emit languageChanged(); + return m_locale->setLanguage(languages); } void Locale::setCurrencyCode(const QString &newCurrencyCode) { - m_locale->setCurrencyCode(newCurrencyCode); emit currencyCodeChanged(); + m_locale->setCurrencyCode(newCurrencyCode); } bool Locale::isApplicationTranslatedInto(const QString &lang) @@ -716,12 +714,6 @@ Locale::WeekNumberSystem Locale::weekNumberSystem() const return m_locale->weekNumberSystem(); } -/*Locale::Locale(const Locale &rhs) - : d(new Locale(*rhs.d)) -{ - m_locale->q = this; -}*/ - void Locale::copyCatalogsTo(Locale *locale) { m_locale->copyCatalogsTo(locale); diff --git a/declarativeimports/locale/locale.h b/declarativeimports/locale/locale.h index 35ab9f1bc..ead62c3a8 100644 --- a/declarativeimports/locale/locale.h +++ b/declarativeimports/locale/locale.h @@ -32,7 +32,7 @@ class QDateTime; class KDateTime; class KCalendarSystem; class KCurrencyCode; -class KDayPeriod; +//class KDayPeriod; /** * \file klocale.h