X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.h;h=3ed2cee358777649bad97a3083d954132b7d73c6;hp=5877040cf33b2b914ba1545d6645f65f58d066d5;hb=c902a2a58671e7d145f5e879d87100844bd20df4;hpb=80fcc77b8883ef496fcf0ee9b43cf678232e175c 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;