Display From Label as Link

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2136 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-01-26 23:41:02 +00:00
parent 7fd5c7ad4b
commit e42bea40cf
2 changed files with 9 additions and 1 deletions

View File

@ -842,7 +842,7 @@ void MessagesDialog::insertMsgTxtAndFiles()
ui.dateText-> setText(timestamp); ui.dateText-> setText(timestamp);
} }
ui.toText->setText(msgTxt); ui.toText->setText(msgTxt);
ui.fromText->setText(QString::fromStdString(rsPeers->getPeerName(msgInfo.srcId))); ui.fromText->setText("<a style='color: blue;' href='" + QString::fromStdString(rsPeers->getPeerName(msgInfo.srcId)) + "'> " + QString::fromStdString(rsPeers->getPeerName(msgInfo.srcId)) +"</a>");
ui.subjectText->setText(QString::fromStdWString(msgInfo.title)); ui.subjectText->setText(QString::fromStdWString(msgInfo.title));
ui.msgText->setHtml(QString::fromStdWString(msgInfo.msg)); ui.msgText->setHtml(QString::fromStdWString(msgInfo.msg));

View File

@ -1138,9 +1138,17 @@ p, li { white-space: pre-wrap; }
<height>12</height> <height>12</height>
</size> </size>
</property> </property>
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="2" column="0">