mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-15 12:32:37 -04: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
1 changed files with 3 additions and 3 deletions
|
@ -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()) ;
|
||||||
|
@ -734,10 +735,9 @@ 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…
Add table
Add a link
Reference in a new issue