summaryrefslogtreecommitdiffstats
path: root/korganizer/koeditorattachments.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koeditorattachments.cpp')
-rw-r--r--korganizer/koeditorattachments.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/korganizer/koeditorattachments.cpp b/korganizer/koeditorattachments.cpp
index 99d775e69..19a75a992 100644
--- a/korganizer/koeditorattachments.cpp
+++ b/korganizer/koeditorattachments.cpp
@@ -151,7 +151,7 @@ class AttachmentListItem : public KIconViewItem
if ( mAttachment->isUri() ) {
mimeType = KMimeType::findByURL( mAttachment->uri() );
} else {
- mimeType = KMimeType::findByContent( mAttachment->decodedData() );
+ mimeType = KMimeType::tqfindByContent( mAttachment->decodedData() );
}
mAttachment->setMimeType( mimeType->name() );
}
@@ -232,7 +232,7 @@ AttachmentEditDialog::AttachmentEditDialog( AttachmentListItem *item,
} else {
uint size = item->attachment()->size();
grid->addWidget( new TQLabel( i18n( "Size:" ), topFrame ), 4, 0 );
- grid->addWidget( new TQLabel( TQString::fromLatin1( "%1 (%2)" ).
+ grid->addWidget( new TQLabel( TQString::tqfromLatin1( "%1 (%2)" ).
arg( KIO::convertSize( size ) ).
arg( KGlobal::locale()->formatNumber(
size, 0 ) ), topFrame ), 4, 2 );
@@ -330,7 +330,7 @@ AttachmentIconView::AttachmentIconView( KOEditorAttachments* parent )
KURL AttachmentIconView::tempFileForAttachment( KCal::Attachment *attachment )
{
- if ( mTempFiles.contains( attachment ) ) {
+ if ( mTempFiles.tqcontains( attachment ) ) {
return mTempFiles[attachment];
}
TQStringList patterns = KMimeType::mimeType( attachment->mimeType() )->patterns();
@@ -625,7 +625,7 @@ void KOEditorAttachments::handlePasteOrDrop( TQMimeSource* source )
addUriAttachment( (*it).url(), TQString::null, label, true );
}
} else { // we take anything
- addDataAttachment( source->encodedData( source->format() ),
+ addDataAttachment( source->tqencodedData( source->format() ),
source->format(),
KMimeType::mimeType( source->format() )->name() );
}
@@ -833,7 +833,7 @@ void KOEditorAttachments::addDataAttachment( const TQByteArray &data,
item->setData( data );
item->setLabel( nlabel );
if ( mimeType.isEmpty() ) {
- item->setMimeType( KMimeType::findByContent( data )->name() );
+ item->setMimeType( KMimeType::tqfindByContent( data )->name() );
} else {
item->setMimeType( mimeType );
}