mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-24 22:30:42 -04:00
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:
parent
9b0bfb26c2
commit
787159debe
3 changed files with 11 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue