added spinbox to show older versions

This commit is contained in:
csoler 2017-02-03 13:02:53 +01:00
parent 777a73e528
commit dfcb66db8c
2 changed files with 16 additions and 12 deletions

View File

@ -219,7 +219,12 @@ void CreateGxsForumMsg::loadFormInformation()
QString name = QString::fromUtf8(mForumMeta.mGroupName.c_str()); QString name = QString::fromUtf8(mForumMeta.mGroupName.c_str());
QString subj; QString subj;
if (!mParentId.isNull())
if(!mOrigMsgId.isNull())
{
subj = QString::fromUtf8(mParentMsg.mMeta.mMsgName.c_str());
}
else if (!mParentId.isNull())
{ {
QString title = QString::fromUtf8(mParentMsg.mMeta.mMsgName.c_str()); QString title = QString::fromUtf8(mParentMsg.mMeta.mMsgName.c_str());
name += " " + tr("In Reply to") + ": "; name += " " + tr("In Reply to") + ": ";
@ -228,14 +233,10 @@ void CreateGxsForumMsg::loadFormInformation()
QString text = title; QString text = title;
if (text.startsWith("Re:", Qt::CaseInsensitive)) if (text.startsWith("Re:", Qt::CaseInsensitive))
{
subj = title; subj = title;
}
else else
{
subj = "Re: " + title; subj = "Re: " + title;
} }
}
ui.forumName->setText(misc::removeNewLine(name)); ui.forumName->setText(misc::removeNewLine(name));
ui.forumSubject->setText(misc::removeNewLine(subj)); ui.forumSubject->setText(misc::removeNewLine(subj));

View File

@ -296,7 +296,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="12"> <item row="0" column="13">
<widget class="QPushButton" name="nextUnreadButton"> <widget class="QPushButton" name="nextUnreadButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
@ -332,7 +332,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="14"> <item row="0" column="15">
<widget class="QPushButton" name="expandButton"> <widget class="QPushButton" name="expandButton">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
@ -372,7 +372,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="11"> <item row="0" column="12">
<spacer name="postHSpacer"> <spacer name="postHSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
@ -464,20 +464,23 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="10"> <item row="0" column="11">
<widget class="GxsIdLabel" name="by_label"> <widget class="GxsIdLabel" name="by_label">
<property name="text"> <property name="text">
<string notr="true"/> <string notr="true"/>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="9"> <item row="0" column="10">
<widget class="QLabel" name="by_text_label"> <widget class="QLabel" name="by_text_label">
<property name="text"> <property name="text">
<string>By </string> <string>By </string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="9">
<widget class="QSpinBox" name="version_SB"/>
</item>
</layout> </layout>
</item> </item>
</layout> </layout>