X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.h;h=3ed2cee358777649bad97a3083d954132b7d73c6;hb=5a94027ffed6c97b839a6104e2d572a876a995d8;hp=5877040cf33b2b914ba1545d6645f65f58d066d5;hpb=e88a5b5f44c84f3892c120b98e6a376032a32644;p=quassel.git diff --git a/src/qtui/chatitem.h b/src/qtui/chatitem.h index 5877040c..3ed2cee3 100644 --- a/src/qtui/chatitem.h +++ b/src/qtui/chatitem.h @@ -80,16 +80,13 @@ 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) { - prepareGeometryChange(); _boundingRect.setHeight(height); } inline void setWidth(const qreal &width) { - prepareGeometryChange(); _boundingRect.setWidth(width); } @@ -179,10 +176,6 @@ private: void showWebPreview(const Clickable &click); void clearWebPreview(); - - // WARNING: setGeometry and setHeight should not be used without either: - // a) calling prepareGeometryChange() immediately before setColumns() - // b) calling Chatline::setPos() immediately afterwards qreal setGeometryByWidth(qreal w); friend class ChatLine; friend struct ContentsChatItemPrivate;