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

List:       kde-commits
Subject:    kdepim/korganizer
From:       Reinhold Kainhofer <reinhold () kainhofer ! com>
Date:       2003-09-29 23:58:13
[Download RAW message or body]

CVS commit by kainhofe: 

Don't use the deprecated montName and weekDayName from KLocale, but rather those from KCalendarSystem...


  M +6 -2      koeditorrecurrence.cpp   1.56


--- kdepim/korganizer/koeditorrecurrence.cpp  #1.55:1.56
@@ -249,7 +249,8 @@ RecurMonthly::RecurMonthly( QWidget *par
   buttonLayout->addWidget( mByPosCountCombo, 1, 1 );
 
+  const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem();
   mByPosWeekdayCombo = new QComboBox( buttonGroup );
   for( int i = 1; i <= 7; ++i ) {
-    mByPosWeekdayCombo->insertItem( KGlobal::locale()->weekDayName( i ) );
+    mByPosWeekdayCombo->insertItem( calSys->weekDayName( i ) );
   }
   buttonLayout->addWidget( mByPosWeekdayCombo, 1, 2 );
@@ -337,7 +338,10 @@ RecurYearly::RecurYearly( QWidget *paren
   buttonLayout->addWidget( mByMonthRadio, 0, 0 );
 
+  const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem();
   mByMonthCombo = new QComboBox( buttonGroup );
   for( int i = 1; i <= 12; ++i ) {
-    mByMonthCombo->insertItem( KGlobal::locale()->monthName( i ) );
+    // use an arbitrary year, we just need the month name...
+    QDate dt( 1, i, 2005 );
+    mByMonthCombo->insertItem( calSys->monthName( dt ) );
   }
   buttonLayout->addWidget( mByMonthCombo, 0, 1 );


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

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