Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(chatlog): Prepare geometry changes on chatline proxy
Browse files Browse the repository at this point in the history
Closes #5818. If output of boundingRect() changes for a QGraphicsItem
prepareGeomeotryChange() must be called.
  • Loading branch information
sphaerophoria committed Sep 13, 2019
1 parent bd034e1 commit 74d0b47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chatlog/chatlinecontentproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ QWidget* ChatLineContentProxy::getWidget() const

void ChatLineContentProxy::setWidth(qreal width)
{
prepareGeometryChange();
proxy->widget()->setFixedWidth(qMax(static_cast<int>(width * widthPercent), widthMin));
}

Expand Down

0 comments on commit 74d0b47

Please sign in to comment.