From kde-commits Mon Sep 29 23:58:13 2003 From: Reinhold Kainhofer Date: Mon, 29 Sep 2003 23:58:13 +0000 To: kde-commits Subject: kdepim/korganizer X-MARC-Message: https://marc.info/?l=kde-commits&m=106487992517060 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 );