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:
parent
bd034e130d
commit
74d0b47ceb
@ -78,6 +78,7 @@ QWidget* ChatLineContentProxy::getWidget() const
|
|||||||
|
|
||||||
void ChatLineContentProxy::setWidth(qreal width)
|
void ChatLineContentProxy::setWidth(qreal width)
|
||||||
{
|
{
|
||||||
|
prepareGeometryChange();
|
||||||
proxy->widget()->setFixedWidth(qMax(static_cast<int>(width * widthPercent), widthMin));
|
proxy->widget()->setFixedWidth(qMax(static_cast<int>(width * widthPercent), widthMin));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user