summaryrefslogtreecommitdiffstats
path: root/lib/store/tests/storedroptest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/store/tests/storedroptest.cpp')
-rw-r--r--lib/store/tests/storedroptest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/store/tests/storedroptest.cpp b/lib/store/tests/storedroptest.cpp
index f4b215ba..9da8d2d8 100644
--- a/lib/store/tests/storedroptest.cpp
+++ b/lib/store/tests/storedroptest.cpp
@@ -1,10 +1,10 @@
#include <kapplication.h>
#include <kcmdlineargs.h>
#include <KoStore.h>
-#include <textbrowser.h>
+#include <tqtextbrowser.h>
#include <tqstringlist.h>
#include <tqbuffer.h>
-#include <clipboard.h>
+#include <tqclipboard.h>
class StoreDropTest : public TQTextBrowser
{
@@ -65,7 +65,7 @@ void StoreDropTest::keyPressEvent( TQKeyEvent * e )
void StoreDropTest::paste()
{
qDebug( "paste" );
- TQMimeSource* m = TQApplication::clipboard()->data();
+ TQMimeSource* m = TQApplication::tqclipboard()->data();
if ( !m )
return;
processMimeSource( m );
@@ -88,7 +88,7 @@ bool StoreDropTest::processMimeSource( TQMimeSource* ev )
formats += fmt;
bool oasis = TQString( fmt ).startsWith( acceptMimeType );
if ( oasis || TQString( fmt ) == "application/x-kpresenter" ) {
- TQByteArray data = ev->encodedData( fmt );
+ TQByteArray data = ev->tqencodedData( fmt );
showZipContents( data, fmt, oasis );
return true;
}
@@ -127,11 +127,11 @@ void StoreDropTest::showZipContents( TQByteArray data, const char* mimeType, boo
TQString StoreDropTest::loadTextFile( KoStore* store, const TQString& fileName )
{
if ( !store->open( fileName ) )
- return TQString( "%1 not found\n" ).arg( fileName );
+ return TQString( "%1 not found\n" ).tqarg( fileName );
TQByteArray data = store->device()->readAll();
store->close();
- TQString txt = TQString( "Found %1: \n" ).arg( fileName );
+ TQString txt = TQString( "Found %1: \n" ).tqarg( fileName );
txt += TQString::fromUtf8( data.data(), data.size() );
txt += "\n";
return txt;