26 const bool sizeChanged = ( p.size() != mPixmap.size() );
29 if ( mPixmap.isNull() )
30 this->setMinimumHeight( 0 );
32 this->setMinimumHeight( PIXMAP_MINIMUM_HEIGHT );
39 QLabel::setPixmap( mPixmap.scaled( this->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation ) );
44 if ( mPixmap.isNull() )
47 return ( ( qreal )mPixmap.height() * width ) / mPixmap.width();
52 if ( mPixmap.isNull() )
55 const int w = this->width();
61 QLabel::resizeEvent( e );
62 if ( !mPixmap.isNull() )
65 QLabel::setPixmap( mPixmap.scaled( this->size() -= QSize( 1, 1 ), Qt::KeepAspectRatio, Qt::SmoothTransformation ) );
73 this->setMinimumHeight( 0 );