[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/multimedia/amarok/src/context/applets/lyrics
From:       Simon Esneault <simon.esneault () gmail ! com>
Date:       2009-07-05 16:28:56
Message-ID: 1246811336.170116.14387.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 991783 by sesneault:

Fix the background not correctly redrawn in some case. Same fix as for wikipedia \
applet BUG:196385
-Simon


 M  +7 -1      LyricsApplet.cpp  


--- trunk/extragear/multimedia/amarok/src/context/applets/lyrics/LyricsApplet.cpp \
#991782:991783 @@ -268,7 +268,13 @@
     QColor highlight( App::instance()->palette().highlight().color() );
     highlight.setHsvF( highlight.hueF(), 0.07, 1, highlight.alphaF() );
 
-    QRectF lyricsRect = m_lyricsProxy->boundingRect();
+    // HACK
+    // sometimes paint is done before the updateconstraints call
+    // so m_lyricsProxy bounding rect is not yet correct
+    QRectF lyricsRect(
+        QPointF( standardPadding(), m_titleLabel->pos().y() + \
m_titleLabel->boundingRect().height() + standardPadding() ), +        QSizeF( \
size().width() - 2 * standardPadding(), boundingRect().height() - \
m_lyricsProxy->pos().y() - standardPadding() ) ); +
     lyricsRect.moveTopLeft( m_lyricsProxy->pos() );
     QPainterPath path;
     path.addRoundedRect( lyricsRect, 5, 5 );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic