Added to Send RetroShare link as html format for Messages

Added to can download from Messages when clicked on link.
Added when start connection attempt then change icon on location.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2056 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-01-16 18:03:35 +00:00
parent e70e995894
commit 84447a6304
8 changed files with 103 additions and 3 deletions

View file

@ -215,6 +215,7 @@ ChanMsgDialog::ChanMsgDialog(bool msg, QWidget *parent, Qt::WFlags flags)
_smheader->resizeSection ( 3, 220 );
_smheader->resizeSection ( 4, 10 );
/* Hide platform specific features */
#ifdef Q_WS_WIN
@ -533,6 +534,11 @@ void ChanMsgDialog::insertMsgText(std::string msg)
ui.msgText->setText(QString::fromStdString(msg));
}
void ChanMsgDialog::insertHtmlText(std::string msg)
{
ui.msgText->setHtml(QString("<a href='") + QString::fromStdString(std::string(msg + "'> ") ) + QString::fromStdString(std::string(msg)) + "</a>") ;
}
void ChanMsgDialog::sendMessage()
{