-rw-r--r-- | noncore/multimedia/opieplayer2/mediawidget.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/noncore/multimedia/opieplayer2/mediawidget.cpp b/noncore/multimedia/opieplayer2/mediawidget.cpp index 865ff91..70ef8d9 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.cpp +++ b/noncore/multimedia/opieplayer2/mediawidget.cpp @@ -73,9 +73,8 @@ MediaWidget::Button MediaWidget::setupButton( const SkinButtonInfo &buttonInfo, QBitmap MediaWidget::setupButtonMask( const Command &command, const QString &fileName ) { - QBitmap mask( Resource::findPixmap( fileName ) ); - if ( mask.isNull() ) - return mask; + QImage imgMask( Resource::findPixmap( fileName ) ); + if ( imgMask.isNull() ) + return QBitmap(); - QImage imgMask = mask.convertToImage(); uchar **dest = buttonMask.jumpTable(); for ( int y = 0; y < buttonMask.height(); y++ ) { @@ -86,5 +85,7 @@ QBitmap MediaWidget::setupButtonMask( const Command &command, const QString &fil } - return mask; + // ### grmbl qt2. use constructor when switching to qt3. + QBitmap bm; bm = imgMask; + return bm; } |