Fix remaining issues from mimetype icon rename

pull/21/head
Timothy Pearson 10 years ago
parent da8d6afa17
commit eb918b697e

@ -366,11 +366,11 @@ void KMMimePartTreeItem::setIconAndTextForType( const TQString & mime )
setPixmap( 0, SmallIcon("folder") );
} else if ( mimetype == "application/octet-stream" ) {
setText( 1, i18n("Unspecified Binary Data") ); // don't show "Unknown"...
setPixmap( 0, SmallIcon("text-x-katefilelist") );
setPixmap( 0, SmallIcon("unknown") );
} else {
KMimeType::Ptr mtp = KMimeType::mimeType( mimetype );
setText( 1, (mtp && !mtp->comment().isEmpty()) ? mtp->comment() : mimetype );
setPixmap( 0, mtp ? mtp->pixmap( TDEIcon::Small) : SmallIcon("text-x-katefilelist") );
setPixmap( 0, mtp ? mtp->pixmap( TDEIcon::Small) : SmallIcon("unknown") );
}
}

@ -65,7 +65,7 @@ KMMsgPartDialog::KMMsgPartDialog( const TQString & caption,
// mimetype icon:
mIcon = new TQLabel( plainPage() );
mIcon->setPixmap( DesktopIcon("text-x-katefilelist") );
mIcon->setPixmap( DesktopIcon("unknown") );
glay->addMultiCellWidget( mIcon, 0, 1, 0, 0 );
// row 0: Type combobox:
@ -325,7 +325,7 @@ void KMMsgPartDialog::slotMimeTypeChanged( const TQString & mimeType ) {
== TQValidator::Acceptable )
mIcon->setPixmap( KMimeType::mimeType( mimeType )->pixmap( TDEIcon::Desktop ) );
else
mIcon->setPixmap( DesktopIcon("text-x-katefilelist") );
mIcon->setPixmap( DesktopIcon("unknown") );
}

Loading…
Cancel
Save