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

List:       kde-commits
Subject:    extragear/plasma/applets/notes
From:       Sebastian Kügler <sebas () kde ! nl>
Date:       2008-04-29 16:19:32
Message-ID: 1209485972.099742.15301.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 802480 by sebas:

Base fontsize in Notes applet on average of width and height.


 M  +1 -1      notes.cpp  


--- trunk/extragear/plasma/applets/notes/notes.cpp #802479:802480
@@ -102,7 +102,7 @@
 int Notes::fontSize()
 {
     if (m_autoFont) {
-        int geo = qMax(geometry().width(), geometry().height());
+        int geo = (int)((geometry().width() + geometry().height())/2);
         int size = qMax(KGlobalSettings::smallestReadableFont().pointSize(), \
                qRound(geo*m_autoFontPercent/100));
         kDebug() << size << geo*m_autoFontPercent << geo << m_autoFontPercent << \
geometry();  return size;


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

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