mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-21 15:29:53 -05:00
improved vertical scrollbar behaviour for groupchat
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1489 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
fc6a86b592
commit
e57db77455
@ -735,11 +735,18 @@ void PeersDialog::insertChat()
|
||||
}
|
||||
|
||||
|
||||
msgWidget->setHtml(currenttxt);
|
||||
|
||||
msgWidget->update();
|
||||
QScrollBar *qsb = msgWidget->verticalScrollBar();
|
||||
qsb -> setValue(qsb->maximum());
|
||||
int oldQsbValue = qsb->value();
|
||||
bool maxQsbValue = (qsb->maximum() == qsb->value());
|
||||
|
||||
msgWidget->setHtml(currenttxt);
|
||||
msgWidget->update();
|
||||
|
||||
if (maxQsbValue ) {
|
||||
qsb -> setValue(qsb->maximum());
|
||||
} else {
|
||||
qsb -> setValue(oldQsbValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user