added Timestamps for forum message feeds to know the date for each Forum Message.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2515 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-03-10 22:41:10 +00:00
parent a657def956
commit ff0b797248
3 changed files with 55 additions and 33 deletions

View File

@ -115,6 +115,11 @@ void ForumMsgItem::updateItemStatic()
prevSHLabel->setText("Subject: ");
prevSubLabel->setText(QString::fromStdWString(msg.title));
prevMsgLabel->setText(QString::fromStdWString(msg.msg));
QDateTime qtime;
qtime.setTime_t(msg.ts);
QString timestamp = qtime.toString("dd.MMMM yyyy hh:mm:ss");
timestamplabel->setText(timestamp);
nextFrame->hide();
}
@ -123,6 +128,11 @@ void ForumMsgItem::updateItemStatic()
nextSubLabel->setText(QString::fromStdWString(msg.title));
nextMsgLabel->setText(QString::fromStdWString(msg.msg));
QDateTime qtime;
qtime.setTime_t(msg.ts);
QString timestamp = qtime.toString("dd.MMMM yyyy hh:mm:ss");
timestamplabel->setText(timestamp);
prevSHLabel->setText("In Reply To: ");
ForumMsgInfo msgParent;

View File

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>632</width>
<width>716</width>
<height>340</height>
</rect>
</property>
@ -76,8 +76,9 @@ border-radius: 10px}</string>
</property>
<property name="font">
<font>
<pointsize>9</pointsize>
<weight>75</weight>
<italic>true</italic>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
@ -87,21 +88,32 @@ border-radius: 10px}</string>
</widget>
</item>
<item>
<spacer>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>500</width>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="timestamplabel">
<property name="font">
<font>
<pointsize>9</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Timestamp</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="expandButton">
<property name="sizePolicy">

View File

@ -102,6 +102,32 @@ border-radius: 10px}</string>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_10">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Last Contact:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lastLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="expandButton">
<property name="sizePolicy">
@ -449,19 +475,6 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_10">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Last Contact:</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
@ -557,19 +570,6 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lastLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>