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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/digital-clock
From:       Beat Wolf <asraniel () fryx ! ch>
Date:       2008-12-11 22:38:24
Message-ID: 1229035104.105650.9547.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 895895 by beatwolf:

Fix text of digital clock with very small panel
BUG:177466


 M  +3 -1      clock.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/digital-clock/clock.cpp #895894:895895
@@ -338,9 +338,11 @@
         m_plainClockFont.setPointSizeF(qMax(timeRect.height(), \
KGlobalSettings::smallestReadableFont().pointSize()));  preparePainter(p, timeRect, \
m_plainClockFont, timeString, true);  
+        QTextOption textOption(Qt::AlignCenter);
+        textOption.setWrapMode(QTextOption::NoWrap);
         p->drawText(timeRect,
                     timeString,
-                    QTextOption(Qt::AlignCenter)
+                    textOption
                 );
     }
 }


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

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