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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/digital-clock
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2009-01-04 1:36:43
Message-ID: 1231033003.869770.26422.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 905255 by aseigo:

compare pixels to pixels


 M  +2 -2      clock.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/digital-clock/clock.cpp #905254:905255
@@ -392,7 +392,7 @@
 
         if (m_dateTimezoneBesides) {
             //kDebug(96669) << contentsRect.height() << subtitleHeight << \
                metrics.height();
-            if (contentsRect.height() - subtitleHeight >= smallFont.pointSize() || \
formFactor() != Plasma::Horizontal) { +            if (contentsRect.height() - \
                subtitleHeight >= smallFont.pixelSize() || formFactor() != \
                Plasma::Horizontal) {
                 // to small to display the time on top of the date/timezone
                 // put them side by side
                 // kDebug(96669) << "switching to normal";
@@ -405,7 +405,7 @@
             /* kDebug(96669) << "checking timezone placement"
                           << contentsRect.height() << dateRect.height() << \
subtitleHeight <<  metrics.lineSpacing();*/
-            if (contentsRect.height() - subtitleHeight < smallFont.pointSize() && \
formFactor() == Plasma::Horizontal) { +            if (contentsRect.height() - \
                subtitleHeight < smallFont.pixelSize() && formFactor() == \
                Plasma::Horizontal) {
                 // to small to display the time on top of the date/timezone
                 // put them side by side
                 // kDebug(96669) << "switching to s-b-s";


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

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