From d91c533ffc42d7bf48fa1326754894b2c30b6831 Mon Sep 17 00:00:00 2001 From: ulf69 Date: Fri, 09 Jul 2004 08:02:25 +0000 Subject: changed the IntDateFormat from type int to enum, for easier categorization --- (limited to 'kaddressbook/addresseeeditorwidget.cpp') diff --git a/kaddressbook/addresseeeditorwidget.cpp b/kaddressbook/addresseeeditorwidget.cpp index 4365ee5..3cfc1f2 100644 --- a/kaddressbook/addresseeeditorwidget.cpp +++ b/kaddressbook/addresseeeditorwidget.cpp @@ -1065,11 +1065,7 @@ void AddresseeEditorWidget::save() //US mAddressee.insertCustom( "KADDRESSBOOK", "X-Anniversary", //US mAnniversaryPicker->date().toString( Qt::ISODate ) ); - int orgformat = KGlobal::locale()->getIntDateFormat(); - QDate da = mAnniversaryPicker->date(); - KGlobal::locale()->setIntDateFormat( 2 ); // = Qt::ISODate - QString dt = KGlobal::locale()->formatDate(da, true); - KGlobal::locale()->setIntDateFormat(orgformat ); + QString dt = KGlobal::locale()->formatDate(mAnniversaryPicker->date(), true, KLocale::ISODate); mAddressee.insertCustom( "KADDRESSBOOK", "X-Anniversary", dt); } else -- cgit v0.9.0.2