mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 15:45:04 -04:00
- added RsCompress with memory compression methods based on ZLib (already linked)
- added test code for RsCompress methods - used compression to compress file lists so as to reduce bandwidth usage git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.6-initdev@6809 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9d4033b043
commit
120a27d9c7
5 changed files with 306 additions and 35 deletions
|
@ -1138,7 +1138,7 @@ void MessagesDialog::insertMessages()
|
|||
if(it->msgflags & RS_MSG_ENCRYPTED)
|
||||
text = tr("Encrypted message. Right-click to decrypt it.") ;
|
||||
else
|
||||
text = QString::fromStdString(it->title);
|
||||
text = QString::fromUtf8(it->title.c_str());
|
||||
|
||||
item[COLUMN_SUBJECT]->setText(text);
|
||||
item[COLUMN_SUBJECT]->setData(text + dateString, ROLE_SORT);
|
||||
|
@ -1206,7 +1206,7 @@ void MessagesDialog::insertMessages()
|
|||
if (gotInfo || rsMsgs->getMessage(it->msgId, msgInfo)) {
|
||||
gotInfo = true;
|
||||
QTextDocument doc;
|
||||
doc.setHtml(QString::fromStdString(msgInfo.msg));
|
||||
doc.setHtml(QString::fromUtf8(msgInfo.msg.c_str()));
|
||||
item[COLUMN_CONTENT]->setText(doc.toPlainText().replace(QString("\n"), QString(" ")));
|
||||
} else {
|
||||
std::cerr << "MessagesDialog::insertMsgTxtAndFiles() Couldn't find Msg" << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue