mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-30 04:16:40 -05:00
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:
parent
59ed165c81
commit
a573211629
27 changed files with 159 additions and 129 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue