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

@ -32,7 +32,7 @@
#include <retroshare/rsmsgs.h>
#include <retroshare/rspeers.h>
#include "rshare.h"
/****
* #define DEBUG_ITEM 1
****/
@ -56,7 +56,8 @@ MsgItem::MsgItem(FeedHolder *parent, uint32_t feedId, const std::string &msgId,
connect( deleteButton, SIGNAL( clicked( void ) ), this, SLOT( deleteMsg ( void ) ) );
connect( replyButton, SIGNAL( clicked( void ) ), this, SLOT( replyMsg ( void ) ) );
small();
expandFrame->hide();
updateItemStatic();
updateItem();
}
@ -92,9 +93,7 @@ void MsgItem::updateItemStatic()
}
{
QDateTime qtime;
qtime.setTime_t(mi.ts);
timestampLabel->setText(qtime.toString("dd.MMMM yyyy hh:mm:ss"));
timestampLabel->setText(Rshare::customLongDate(mi.ts));
}
if (!mIsHome)
@ -188,12 +187,6 @@ void MsgItem::updateItem()
}
}
void MsgItem::small()
{
expandFrame->hide();
}
void MsgItem::toggle()
{
mParent->lockLayout(this, true);