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

List:       kde-commits
Subject:    KDE/kdepim/korganizer/views/monthview (silent)
From:       Allen Winter <winter () kde ! org>
Date:       2008-04-30 20:32:23
Message-ID: 1209587543.750429.14317.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 802838 by winterz:

minor coding style fixes, like remove trailing whitespace
SVN_SILENT:


 M  +2 -1      monthitem.cpp  
 M  +1 -1      monthitem.h  
 M  +5 -5      monthscene.cpp  
 M  +7 -7      monthscene.h  


--- trunk/KDE/kdepim/korganizer/views/monthview/monthitem.cpp #802837:802838
@@ -109,7 +109,8 @@
   int textMargin = 10;
 
   QColor bgColor = QColor();
-  if ( mMonthItem->incidence()->type() == "Todo" && \
!KOPrefs::instance()->todosUseCategoryColors() ) { +  if ( \
mMonthItem->incidence()->type() == "Todo" && +       \
!KOPrefs::instance()->todosUseCategoryColors() ) {  if ( static_cast<Todo*>( \
                mMonthItem->incidence() )->isOverdue() ) {
       bgColor = KOPrefs::instance()->agendaCalendarItemsToDosOverdueBackgroundColor();
                
     } else if ( static_cast<Todo*>( mMonthItem->incidence() )->dtDue().date() ==
--- trunk/KDE/kdepim/korganizer/views/monthview/monthitem.h #802837:802838
@@ -252,7 +252,7 @@
       Returns true if the item can be resized. Typically, events can
       be resized but to-dos and journals can't.
      */
-    bool isResizable() const;    
+    bool isResizable() const;
 
     /**
       Deletes all MonthGraphicsItem this item handles. Clear the list.
--- trunk/KDE/kdepim/korganizer/views/monthview/monthscene.cpp #802837:802838
@@ -187,17 +187,17 @@
                       calSys->monthName( mMonthView->averageDate() ),
                       calSys->yearString( mMonthView->averageDate() ) ) );
 
-
   font.setPixelSize( dayLabelsHeight - 10 );
   p->setFont( font );
-  for ( QDate d = mMonthView->mStartDate; d <= mMonthView->mStartDate.addDays( 6 ); \
d = d.addDays( 1 ) ) { +  for ( QDate d = mMonthView->mStartDate;
+        d <= mMonthView->mStartDate.addDays( 6 ); d = d.addDays( 1 ) ) {
     MonthCell *cell = mScene->mMonthCellMap[ d ];
     p->drawText( QRect( mScene->cellHorizontalPos( cell ),
                         mScene->cellVerticalPos( cell ) - 15,
                         mScene->columnWidth(),
                         15 ),
                  Qt::AlignCenter,
-                 calSys->weekDayName( d,  KCalendarSystem::LongDayName ) );
+                 calSys->weekDayName( d, KCalendarSystem::LongDayName ) );
   }
 
   /*
@@ -299,8 +299,8 @@
 
     QString dayText;
     // Prepend month name if d is the first or last day of month
-    if ( calSys->day( d ) == 1                     // d is the first day of month
-         || calSys->day( d.addDays( 1 ) ) == 1 ) {  // d is the last day of month
+    if ( calSys->day( d ) == 1 ||                // d is the first day of month
+         calSys->day( d.addDays( 1 ) ) == 1 ) {  // d is the last day of month
       dayText = i18nc( "'Month day' for month view cells", "%1 %2",
                   calSys->monthName( d, KCalendarSystem::ShortName ),
                   calSys->day( d ) );
--- trunk/KDE/kdepim/korganizer/views/monthview/monthscene.h #802837:802838
@@ -90,7 +90,7 @@
      * taking in account margins, rowHeight
      */
     int cellVerticalPos( const MonthCell *cell ) const;
-    
+
     /**
      * Idem, for the horizontal position
      */
@@ -203,19 +203,19 @@
     int availableHeight() const;
 
     /**
-     * Removes all the margins, frames, etc. to give the 
+     * Removes all the margins, frames, etc. to give the
      * X coordinate in the MonthGrid.
-     */ 
+     */
     int sceneXToMonthGridX( int xScene );
-    
-    /**     
-     * Removes all the margins, frames, headers etc. to give the 
+
+    /**
+     * Removes all the margins, frames, headers etc. to give the
      * Y coordinate in the MonthGrid.
      */
     int sceneYToMonthGridY( int yScene );
 
     /**
-     * Given a pos in the scene coordinates, 
+     * Given a pos in the scene coordinates,
      * returns the cell containing @p pos.
      */
     MonthCell *getCellFromPos( const QPointF &pos );


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

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