diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-21 14:22:15 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-06-02 19:05:01 +0200 |
commit | ffd8d17b0ba4286d25112d69d0b04bbe50e31b26 (patch) | |
tree | 047226d0f2817f5af3c55eb9d31a443fe7b9b61e /kdecore/klocale.cpp | |
parent | 41b1d53a0144afe4c31425c18af25c2d6ade881b (diff) | |
download | tdelibs-ffd8d17b0ba4286d25112d69d0b04bbe50e31b26.tar.gz tdelibs-ffd8d17b0ba4286d25112d69d0b04bbe50e31b26.zip |
Rename obsolete tq methods to standard names
(cherry picked from commit 1180237ab336226ad932d767a6cb56208314988f)
Diffstat (limited to 'kdecore/klocale.cpp')
-rw-r--r-- | kdecore/klocale.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kdecore/klocale.cpp b/kdecore/klocale.cpp index 990baa395..4a4d845f5 100644 --- a/kdecore/klocale.cpp +++ b/kdecore/klocale.cpp @@ -1352,14 +1352,14 @@ TQString KLocale::formatDate(const TQDate &pDate, bool shortFormat) const { if ( !escape ) { - if ( (TQChar(rst.at( format_index )).tqunicode()) == '%' ) + if ( (TQChar(rst.at( format_index )).unicode()) == '%' ) escape = true; else buffer.append(rst.at(format_index)); } else { - switch ( TQChar(rst.at( format_index )).tqunicode() ) + switch ( TQChar(rst.at( format_index )).unicode() ) { case '%': buffer.append('%'); @@ -1876,14 +1876,14 @@ TQString KLocale::formatTime(const TQTime &pTime, bool includeSecs, bool isDurat { if ( !escape ) { - if ( (TQChar(rst.at( format_index )).tqunicode()) == '%' ) + if ( (TQChar(rst.at( format_index )).unicode()) == '%' ) escape = true; else buffer[index++] = rst.at( format_index ); } else { - switch ( TQChar(rst.at( format_index )).tqunicode() ) + switch ( TQChar(rst.at( format_index )).unicode() ) { case '%': buffer[index++] = (QChar)'%'; @@ -1915,7 +1915,7 @@ TQString KLocale::formatTime(const TQTime &pTime, bool includeSecs, bool isDurat number = pTime.hour(); case 'l': // to share the code - if ( (TQChar(rst.at( format_index )).tqunicode()) == 'l' ) + if ( (TQChar(rst.at( format_index )).unicode()) == 'l' ) number = isDuration ? pTime.hour() : (pTime.hour() + 11) % 12 + 1; if ( number / 10 ) buffer[index++] = number / 10 + '0'; |