summaryrefslogtreecommitdiffstats
path: root/korganizer/koeditorattachments.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /korganizer/koeditorattachments.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 );
}