From 6dea9442526e5ebacf313ad387c7dff4b87a53bf Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 08:19:44 -0600 Subject: Rename KLocale to enhance compatibility with KDE4 --- libkmime/kmime_util.cpp | 6 +++--- libkmime/kmime_util.h | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'libkmime') diff --git a/libkmime/kmime_util.cpp b/libkmime/kmime_util.cpp index 601401814..38f282752 100644 --- a/libkmime/kmime_util.cpp +++ b/libkmime/kmime_util.cpp @@ -636,7 +636,7 @@ DateFormatter::qdateToTimeT(const TQDateTime& dt) const TQString DateFormatter::fancy(time_t otime) const { - KLocale *locale = TDEGlobal::locale(); + TDELocale *locale = TDEGlobal::locale(); if ( otime <= 0 ) return i18n( "unknown" ); @@ -691,13 +691,13 @@ DateFormatter::localized(time_t otime, bool shortFormat, bool includeSecs, { TQDateTime tmp; TQString ret; - KLocale *locale = TDEGlobal::locale(); + TDELocale *locale = TDEGlobal::locale(); tmp.setTime_t( otime ); if ( !localeLanguage.isEmpty() ) { - locale=new KLocale(localeLanguage); + locale=new TDELocale(localeLanguage); locale->setLanguage(localeLanguage); locale->setCountry(localeLanguage); ret = locale->formatDateTime( tmp, shortFormat, includeSecs ); diff --git a/libkmime/kmime_util.h b/libkmime/kmime_util.h index 34f8bd5d7..4619446a4 100644 --- a/libkmime/kmime_util.h +++ b/libkmime/kmime_util.h @@ -223,8 +223,8 @@ namespace KMime { * set format. * @param otime time to format * @param lang used only by the Localized format, sets the used language - * @param shortFormat used only by the Localized format, is passed to KLocale::formatDateTime - * @param includeSecs used only by the Localized format, is passed to KLocale::formatDateTime + * @param shortFormat used only by the Localized format, is passed to TDELocale::formatDateTime + * @param includeSecs used only by the Localized format, is passed to TDELocale::formatDateTime */ TQString dateString(time_t otime, const TQString& lang = TQString(), bool shortFormat = true, bool includeSecs=false) const; @@ -263,8 +263,8 @@ namespace KMime { * @param time time to format * @param data is either the format when FormatType is Custom, or language * when FormatType is Localized - * @param shortFormat used only by the Localized format, is passed to KLocale::formatDateTime - * @param includeSecs used only by the Localized format, is passed to KLocale::formatDateTime + * @param shortFormat used only by the Localized format, is passed to TDELocale::formatDateTime + * @param includeSecs used only by the Localized format, is passed to TDELocale::formatDateTime */ static TQString formatDate( DateFormatter::FormatType t, time_t time, const TQString& data = TQString(), @@ -275,8 +275,8 @@ namespace KMime { * @param t specifies the FormatType to use * @param data is either the format when FormatType is Custom, or language * when FormatType is Localized - * @param shortFormat used only by the Localized format, is passed to KLocale::formatDateTime - * @param includeSecs used only by the Localized format, is passed to KLocale::formatDateTime + * @param shortFormat used only by the Localized format, is passed to TDELocale::formatDateTime + * @param includeSecs used only by the Localized format, is passed to TDELocale::formatDateTime */ static TQString formatCurrentDate( DateFormatter::FormatType t, const TQString& data = TQString(), -- cgit v1.2.1