Commit 496f20ab authored by Jonathan Marten's avatar Jonathan Marten
Browse files

Port deprecated QLabel::pixmap() -> pixmap(Qt::ReturnByValue)

parent 6dc9d6e0
......@@ -76,8 +76,9 @@ void K3b::ThemedLabel::slotThemeChanged()
if( m_themePixmapCode > -1 ) {
setPixmap( theme->pixmap( (K3b::Theme::PixmapType)m_themePixmapCode ) );
setScaledContents( false );
if ( pixmap() ) {
setFixedSize( pixmap()->size() );
const QPixmap &pix = pixmap(Qt::ReturnByValue);
if ( !pix.isNull() ) {
setFixedSize( pix.size() );
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment