summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-09-24 21:22:20 (UTC)
committer zautrix <zautrix>2005-09-24 21:22:20 (UTC)
commit7140721e3421557624a49c5dcc7a38caee8f0ce7 (patch) (unidiff)
tree584fc9709aaebee0eefa64e933c4b627ffb0eee0
parent396aeedb3351ecf9024a3975a5bce9166f0d8aef (diff)
downloadkdepimpi-7140721e3421557624a49c5dcc7a38caee8f0ce7.zip
kdepimpi-7140721e3421557624a49c5dcc7a38caee8f0ce7.tar.gz
kdepimpi-7140721e3421557624a49c5dcc7a38caee8f0ce7.tar.bz2
fix of utf8 month name
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/navigatorbar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/navigatorbar.cpp b/korganizer/navigatorbar.cpp
index b03870f..f6a1a6a 100644
--- a/korganizer/navigatorbar.cpp
+++ b/korganizer/navigatorbar.cpp
@@ -249,31 +249,31 @@ void NavigatorBar::selectMonth()
249 KPopupFrame* popup = new KPopupFrame(this); 249 KPopupFrame* popup = new KPopupFrame(this);
250 KDateInternalMonthPicker* picker = new KDateInternalMonthPicker(popup); 250 KDateInternalMonthPicker* picker = new KDateInternalMonthPicker(popup);
251 // ----- 251 // -----
252 picker->resize(picker->sizeHint()); 252 picker->resize(picker->sizeHint());
253 popup->setMainWidget(picker); 253 popup->setMainWidget(picker);
254 picker->setFocus(); 254 picker->setFocus();
255 connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); 255 connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int)));
256 if(popup->exec(mSelectMonth->mapToGlobal(QPoint(0, mSelectMonth->height())))) 256 if(popup->exec(mSelectMonth->mapToGlobal(QPoint(0, mSelectMonth->height()))))
257 { 257 {
258 month = picker->getResult(); 258 month = picker->getResult();
259 emit monthSelected ( month ); 259 emit monthSelected ( month );
260 } else { 260 } else {
261 KNotifyClient::beep(); 261 KNotifyClient::beep();
262 } 262 }
263 delete popup; 263 delete popup;
264} 264}
265void NavigatorBar::selectDates( const KCal::DateList &dateList ) 265void NavigatorBar::selectDates( const KCal::DateList &dateList )
266{ 266{
267 if (dateList.count() > 0) { 267 if (dateList.count() > 0) {
268 QDate date = dateList.first(); 268 QDate date = dateList.first();
269 269
270 const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem(); 270 const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem();
271 271
272 // compute the label at the top of the navigator 272 // compute the label at the top of the navigator
273 QString dtstr = i18n(calSys->monthName( date )) + " '" + 273 QString dtstr = calSys->monthName( date ) + " '" +
274 QString::number( calSys->year( date ) ).right(2); 274 QString::number( calSys->year( date ) ).right(2);
275 275
276 mSelectMonth->setText( dtstr ); 276 mSelectMonth->setText( dtstr );
277 } 277 }
278} 278}
279 279