Added a insertPastedText() method to ChanMsgDialog to allow inserting blue text while responding to msg

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@721 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2008-09-08 12:41:46 +00:00
parent 9b0bfb26c2
commit 787159debe
3 changed files with 11 additions and 5 deletions

View file

@ -230,11 +230,7 @@ void MessagesDialog::replytomessage()
doc.setHtml(QString::fromStdWString(msgInfo.msg)) ;
std::string cited_text(doc.toPlainText().toStdString()) ;
std::string::size_type i=0 ;
while( (i=cited_text.find_first_of('\n',i+1)) < cited_text.size())
cited_text.replace(i,1,std::string("\n> ")) ;
nMsgDialog->insertMsgText( std::string("> ") + cited_text ) ;
nMsgDialog->insertPastedText(cited_text) ;
nMsgDialog->addRecipient( msgInfo.srcId ) ;
nMsgDialog->show();
nMsgDialog->activateWindow();