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

List:       kde-commits
Subject:    extragear/multimedia/amarok/src
From:       Seb Ruiz <me () sebruiz ! net>
Date:       2006-07-30 1:09:09
Message-ID: 1154221749.381385.24005.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 567759 by seb:

Put the squeezer back in...


 M  +6 -6      playlistbrowseritem.cpp  


--- trunk/extragear/multimedia/amarok/src/playlistbrowseritem.cpp #567758:567759
@@ -2235,14 +2235,14 @@
     QFontMetrics fmName( font );
 
     QString name = text(column);
-//     const int _width = width - text_x - lv->itemMargin()*2;
-//     if( fmName.width( name ) > _width )
-//     {
+    const int _width = width - text_x - lv->itemMargin()*2;
+    if( fmName.width( name ) > _width )
+    {
         //decapitateString removes the channels title from the epsiodes title
 //         name = amaroK::decapitateString( name, static_cast<PodcastChannel *>(m_parent)->title() );
-//         if( fmName.width( name ) > _width )
-//             name = KStringHandler::rPixelSqueeze( name, pBuf.fontMetrics(), _width );
-//     }
+        if( fmName.width( name ) > _width )
+            name = KStringHandler::rPixelSqueeze( name, pBuf.fontMetrics(), _width );
+    }
 
     pBuf.drawText( text_x, 0, width - text_x, textHeight, AlignVCenter, name );
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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