From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kabc/tests/kabcargl.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kabc/tests/kabcargl.cpp') diff --git a/kabc/tests/kabcargl.cpp b/kabc/tests/kabcargl.cpp index 32251303b..b57724c15 100644 --- a/kabc/tests/kabcargl.cpp +++ b/kabc/tests/kabcargl.cpp @@ -18,9 +18,9 @@ Boston, MA 02110-1301, USA. */ -#include -#include -#include +#include +#include +#include #include #include @@ -42,20 +42,20 @@ int main(int argc,char **argv) KApplication app; - QString filename = StdAddressBook::fileName(); + TQString filename = StdAddressBook::fileName(); - QFile f( filename ); + TQFile f( filename ); if ( !f.open( IO_ReadOnly ) ) { kdDebug() << "Error opening file '" << filename << "' for reading." << endl; return 1; } - QTextStream t( &f ); - t.setEncoding(QTextStream::UnicodeUTF8); - QString text = t.read(); + TQTextStream t( &f ); + t.setEncoding(TQTextStream::UnicodeUTF8); + TQString text = t.read(); f.close(); - text = QString::fromUtf8( text.local8Bit() ); + text = TQString::fromUtf8( text.local8Bit() ); text.replace( "\n", "\r\n" ); if ( !f.open( IO_WriteOnly ) ) { @@ -63,8 +63,8 @@ int main(int argc,char **argv) return 1; } - QTextStream t2( &f ); - t2.setEncoding(QTextStream::UnicodeUTF8); + TQTextStream t2( &f ); + t2.setEncoding(TQTextStream::UnicodeUTF8); t2 << text; f.close(); } -- cgit v1.2.1