[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdepim/kaddressbook/views
From: Tobias Koenig <tokoe () kde ! org>
Date: 2004-02-11 14:23:06
Message-ID: 20040211142306.614829135 () office ! kde ! org
[Download RAW message or body]
CVS commit by tokoe:
Show birthday in local date/time format.
CCMAIL:74951-done@bugs.kde.org
M +8 -1 contactlistview.cpp 1.6
--- kdepim/kaddressbook/views/contactlistview.cpp #1.5:1.6
@@ -201,4 +201,11 @@ void ContactListViewItem::refresh()
KABC::Field::List::ConstIterator it;
for( it = mFields.begin(); it != mFields.end(); ++it ) {
+ if ( (*it)->label() == KABC::Addressee::birthdayLabel() ) {
+ QDate date = mAddressee.birthday().date();
+ if ( date.isValid() )
+ setText( i++, KGlobal::locale()->formatDate( date, true ) );
+ else
+ setText( i++, "" );
+ } else
setText( i++, (*it)->value( mAddressee ) );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic