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

List:       kde-commits
Subject:    playground/utils/charm/trunk
From:       Mirko Boehm <mirko () kde ! org>
Date:       2008-10-16 15:52:10
Message-ID: 1224172330.014066.23971.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 872207 by mirko:

 r4256@vierzylinder:  mirko | 2008-10-16 17:51:38 +0200
 - add font settings for X11
 - set pulse interval back to default
 - use regular font for column headers


 _M            . (directory)  
 M  +10 -2     Charm/TimeTrackingSummaryWidget.cpp  


--- trunk/playground/utils/charm/trunk/Charm/TimeTrackingSummaryWidget.cpp #872206:872207
@@ -14,7 +14,7 @@
 #include "ViewHelpers.h"
 #include "TimeTrackingSummaryWidget.h"
 
-const int Margin = 2;
+const int Margin = 3;
 
 TimeTrackingSummaryWidget::TimeTrackingSummaryWidget( QWidget* parent )
     : QWidget( parent )
@@ -23,10 +23,17 @@
     , m_selectedSummary( -1 )
 {
     // FIXME use platform defined, hand-picked fonts, so far those have been selected for Mac:
+#ifdef Q_WS_MAC
     m_fixedFont.setFamily( "Andale Mono" );
     m_fixedFont.setPointSize( 12 );
     m_narrowFont = font(); // stay with the desktop
     m_narrowFont.setPointSize( 12);
+#elif defined Q_WS_X11
+    m_fixedFont.setFamily(  "Bitstream Vera Sans Mono" );
+    m_fixedFont.setPointSize( 9 );
+    m_narrowFont = font(); // stay with the desktop
+    m_narrowFont.setPointSize( 9 );
+#endif
     //
     setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Fixed );
     // plumbing
@@ -39,7 +46,7 @@
     m_taskSelector.setText( tr( "Select Task" ) );
     m_pulse.setLoopCount( 0 );
     m_pulse.setDuration( 2000 );
-    m_pulse.setUpdateInterval( 80 );
+    // m_pulse.setUpdateInterval( 80 );
     m_pulse.setCurveShape( QTimeLine::SineCurve );
     connect( &m_pulse, SIGNAL( valueChanged( qreal ) ),
              SLOT( slotPulseValueChanged( qreal ) ) );
@@ -188,6 +195,7 @@
     DataField field;
     field.font = m_fixedFont;
     if ( row == HeaderRow ) {
+        field.font = m_narrowFont;
         if ( column == TaskColumn ) {
             field.text = tr( "Task" );
         } else if ( column == TotalsColumn ) {
[prev in list] [next in list] [prev in thread] [next in thread] 

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