mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-21 21:55:15 -05:00
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:
parent
e69351dda9
commit
e4ad7ecabc
@ -711,6 +711,7 @@ void PeersDialog::insertChat()
|
|||||||
// notify with a systray icon msg
|
// notify with a systray icon msg
|
||||||
if(it->rsid != rsPeers->getOwnId())
|
if(it->rsid != rsPeers->getOwnId())
|
||||||
{
|
{
|
||||||
|
// This is a trick to translate HTML into text.
|
||||||
QTextEdit editor ;
|
QTextEdit editor ;
|
||||||
editor.setHtml(QString::fromStdWString(it->msg));
|
editor.setHtml(QString::fromStdWString(it->msg));
|
||||||
QString notifyMsg(QString::fromStdString(it->name)+": "+editor.toPlainText()) ;
|
QString notifyMsg(QString::fromStdString(it->name)+": "+editor.toPlainText()) ;
|
||||||
@ -736,8 +737,7 @@ void PeersDialog::insertChat()
|
|||||||
|
|
||||||
msgWidget->setHtml(currenttxt);
|
msgWidget->setHtml(currenttxt);
|
||||||
|
|
||||||
|
msgWidget->update();
|
||||||
|
|
||||||
QScrollBar *qsb = msgWidget->verticalScrollBar();
|
QScrollBar *qsb = msgWidget->verticalScrollBar();
|
||||||
qsb -> setValue(qsb->maximum());
|
qsb -> setValue(qsb->maximum());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user