diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kabc/tests/kabcargl.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kabc/tests/kabcargl.cpp')
-rw-r--r-- | kabc/tests/kabcargl.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
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 <qfile.h> -#include <qtextstream.h> -#include <qregexp.h> +#include <tqfile.h> +#include <tqtextstream.h> +#include <tqregexp.h> #include <kaboutdata.h> #include <kapplication.h> @@ -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(); } |