Added and modified patch from Henry

Modified the date format according to the chosen language (locale).

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5798 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-11-10 18:59:58 +00:00
parent 59ed165c81
commit a573211629
27 changed files with 159 additions and 129 deletions

View file

@ -28,6 +28,7 @@
#include "gui/msgs/MessageComposer.h"
#include "gui/common/StatusDefs.h"
#include "gui/common/AvatarDefs.h"
#include "rshare.h"
#include "gui/notifyqt.h"
@ -71,7 +72,8 @@ PeerItem::PeerItem(FeedHolder *parent, uint32_t feedId, const std::string &peerI
avatar->setId(mPeerId, false);
small();
expandFrame->hide();
updateItemStatic();
updateItem();
}
@ -116,10 +118,7 @@ void PeerItem::updateItemStatic()
{
/* set peer name */
peerNameLabel->setText(QString::fromUtf8(details.name.c_str()));
QDateTime date = QDateTime::fromTime_t(details.lastConnect);
QString stime = date.toString("dd.MMMM yyyy hh:mm");
lastLabel-> setText(stime);
lastLabel-> setText(Rshare::customLongDate(details.lastConnect));
/* expanded Info */
nameLabel->setText(QString::fromUtf8(details.name.c_str()));
@ -208,11 +207,6 @@ void PeerItem::updateItem()
return;
}
void PeerItem::small()
{
expandFrame->hide();
}
void PeerItem::toggle()
{
mParent->lockLayout(this, true);