diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-19 08:24:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-19 08:24:43 +0000 |
commit | 96a33d90689a46ea58f812d76fdd2eaf93edecfa (patch) | |
tree | 756ca55bffdffc115088699dd1b76c61eb6f64bf /kio/tests | |
parent | 5783baba4a547c443e4392f51c8023d38cb9fe6a (diff) | |
download | tdelibs-96a33d90689a46ea58f812d76fdd2eaf93edecfa.tar.gz tdelibs-96a33d90689a46ea58f812d76fdd2eaf93edecfa.zip |
Additional TQt for Qt4 compilation fixes
This should not affect TQt for Qt3 per usual
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1215674 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio/tests')
-rw-r--r-- | kio/tests/jobtest.cpp | 2 | ||||
-rw-r--r-- | kio/tests/kfiltertest.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/kio/tests/jobtest.cpp b/kio/tests/jobtest.cpp index 93b250075..ecd351a08 100644 --- a/kio/tests/jobtest.cpp +++ b/kio/tests/jobtest.cpp @@ -160,7 +160,7 @@ static void createTestFile( const TQString& path ) TQFile f( path ); if ( !f.open( IO_WriteOnly ) ) kdFatal() << "Can't create " << path << endl; - f.writeBlock( "Hello world", 11 ); + f.tqwriteBlock( "Hello world", 11 ); f.close(); setTimeStamp( path ); } diff --git a/kio/tests/kfiltertest.cpp b/kio/tests/kfiltertest.cpp index 901dec14e..e070418e4 100644 --- a/kio/tests/kfiltertest.cpp +++ b/kio/tests/kfiltertest.cpp @@ -35,7 +35,7 @@ void test_block( const TQString & fileName ) TQByteArray array(1024); int n; - while ( ( n = dev->readBlock( array.data(), array.size() ) ) ) + while ( ( n = dev->tqreadBlock( array.data(), array.size() ) ) ) { kdDebug() << "readBlock returned " << n << endl << endl; // TQCString s(array,n+1); // Terminate with 0 before printing @@ -55,9 +55,9 @@ void test_block_write( const TQString & fileName ) if ( !dev->open( IO_WriteOnly ) ) { kdWarning() << "open failed " << endl; return; } TQCString s("hello\n"); - int ret = dev->writeBlock( s, s.size()-1 ); + int ret = dev->tqwriteBlock( s, s.size()-1 ); kdDebug() << "writeBlock ret=" << ret << endl; - //ret = dev->writeBlock( s, s.size()-1 ); + //ret = dev->tqwriteBlock( s, s.size()-1 ); //kdDebug() << "writeBlock ret=" << ret << endl; dev->close(); delete dev; |