- use QImage for output, too

svn path=/trunk/kdepim/; revision=378920
wilder-work
Jakob Schrter 21 years ago
parent f9e131a2e9
commit 8e21cc7cee
  1. 3
      headerstyle.cpp
  2. 6
      xfaceconfigurator.cpp

@ -523,12 +523,11 @@ namespace KMail {
if ( !xfhead.isEmpty() )
{
KXFace xf;
photoURL = imgToDataUrl( xf.toBitmap( xfhead ).convertToImage() );
photoURL = imgToDataUrl( xf.toImage( xfhead ) );
photoWidth = 48;
photoHeight = 48;
}
}
if( !photoURL.isEmpty() )

@ -105,7 +105,7 @@ namespace KMail {
// label1 = new QLabel( "X-Face:", this );
// vlay->addWidget( label1 );
// "obtain X-Facet from" combo and label:
// "obtain X-Face from" combo and label:
hlay = new QHBoxLayout( vlay ); // inherits spacing
mSourceCombo = new QComboBox( false, this );
QWhatsThis::add(mSourceCombo,
@ -272,7 +272,9 @@ namespace KMail {
mTextEdit->setText(str);
}
KXFace xf;
mXFaceLabel->setPixmap( xf.toBitmap(str) );
QPixmap p( 48, 48, true );
p.convertFromImage( xf.toImage(str) );
mXFaceLabel->setPixmap( p );
}
else
mXFaceLabel->setPixmap( 0L );

Loading…
Cancel
Save