X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.h;h=5877040cf33b2b914ba1545d6645f65f58d066d5;hp=51b59f975c5b1a7be3cf6f54b8e80c34fdb921bf;hb=01cfbba296ffa89627284fbbe07cb76d7ff3cc29;hpb=2e023191fb47f5cbd186f7274f8ee1b5d1cc94c3 diff --git a/src/qtui/chatitem.h b/src/qtui/chatitem.h index 51b59f97..5877040c 100644 --- a/src/qtui/chatitem.h +++ b/src/qtui/chatitem.h @@ -80,11 +80,18 @@ protected: // a) calling prepareGeometryChange() immediately before setColumns() // b) calling Chatline::setPos() immediately afterwards inline void setGeometry(qreal width, qreal height) { + prepareGeometryChange(); _boundingRect.setWidth(width); _boundingRect.setHeight(height); } - inline void setHeight(const qreal &height) { _boundingRect.setHeight(height); } - inline void setWidth(const qreal &width) { _boundingRect.setWidth(width); } + inline void setHeight(const qreal &height) { + prepareGeometryChange(); + _boundingRect.setHeight(height); + } + inline void setWidth(const qreal &width) { + prepareGeometryChange(); + _boundingRect.setWidth(width); + } private: // internal selection stuff