1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(chatlog): Prepare geometry changes on chatline proxy

Closes #5818. If output of boundingRect() changes for a QGraphicsItem
prepareGeomeotryChange() must be called.
This commit is contained in:
Mick Sayson 2019-09-13 14:41:10 -07:00
parent bd034e130d
commit 74d0b47ceb

View File

@ -78,6 +78,7 @@ QWidget* ChatLineContentProxy::getWidget() const
void ChatLineContentProxy::setWidth(qreal width)
{
prepareGeometryChange();
proxy->widget()->setFixedWidth(qMax(static_cast<int>(width * widthPercent), widthMin));
}