All pastes #958479 Raw Edit

Stuff

public text v1 · immutable
#958479 ·published 2008-03-26 19:23 UTC
rendered paste body
Index: gamewidget.cpp
===================================================================
--- gamewidget.cpp      (revision 790474)
+++ gamewidget.cpp      (working copy)
@@ -363,7 +363,7 @@
     p.setFont( font );
     int textWidth = p.boundingRect( p.viewport(), Qt::AlignCenter | Qt::AlignVCenter, text ).width();
     int fontSize = 28;
-    while ( ( textWidth > itemWidth * 0.95 ) && ( fontSize > 12 ) )
+    while ( ( textWidth > itemWidth * 0.95 ) )
     {
        fontSize--;
        font.setPointSize( fontSize );