corrected the scroll bug in the group chat

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1435 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-07-26 21:05:13 +00:00
parent e69351dda9
commit e4ad7ecabc

View File

@ -711,6 +711,7 @@ void PeersDialog::insertChat()
// notify with a systray icon msg
if(it->rsid != rsPeers->getOwnId())
{
// This is a trick to translate HTML into text.
QTextEdit editor ;
editor.setHtml(QString::fromStdWString(it->msg));
QString notifyMsg(QString::fromStdString(it->name)+": "+editor.toPlainText()) ;
@ -736,8 +737,7 @@ void PeersDialog::insertChat()
msgWidget->setHtml(currenttxt);
msgWidget->update();
QScrollBar *qsb = msgWidget->verticalScrollBar();
qsb -> setValue(qsb->maximum());
}