packages: lastfm-radio/lastfm-radio-qt46.patch (NEW) - patch to fixed trimm...

jajcus jajcus at pld-linux.org
Wed Sep 1 15:16:11 CEST 2010


Author: jajcus                       Date: Wed Sep  1 13:16:11 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- patch to fixed trimmed titles, from http://www.last.fm/forum/34905/_/609846/1#f12047770

---- Files affected:
packages/lastfm-radio:
   lastfm-radio-qt46.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/lastfm-radio/lastfm-radio-qt46.patch
diff -u /dev/null packages/lastfm-radio/lastfm-radio-qt46.patch:1.1
--- /dev/null	Wed Sep  1 15:16:11 2010
+++ packages/lastfm-radio/lastfm-radio-qt46.patch	Wed Sep  1 15:16:06 2010
@@ -0,0 +1,15 @@
+--- last.fm-1.4.2.58240/src/libUnicorn/draglabel.cpp~	2007-12-18 15:18:19.000000000 +0100
++++ last.fm-1.4.2.58240/src/libUnicorn/draglabel.cpp	2010-09-01 15:12:30.000000000 +0200
+@@ -325,6 +325,12 @@
+         rect.setHeight( fm.height() );
+     }
+ 
++    // Qt 4.6 seems to have problems with the width too
++    if ( fm.width( d.m_text ) > rect.width() )
++    {
++        rect.setWidth( fm.width( d.m_text ) );
++    }
++
+     // boundingRect sometimes returns negative values so make sure it's at 0, 0
+     rect.moveTo( 0, 0 );
+ 
================================================================


More information about the pld-cvs-commit mailing list