Spliting the functionality of setWidth into 3 separate functions for regular setWidth...
[quassel.git] / src / qtui / chatitem.h
index 5877040..3ed2cee 100644 (file)
@@ -80,16 +80,13 @@ protected:
   //  a) calling prepareGeometryChange() immediately before setColumns()
   //  b) calling Chatline::setPos() immediately afterwards
   inline void setGeometry(qreal width, qreal height) {
   //  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.setWidth(width);
     _boundingRect.setHeight(height);
   }
   inline void setHeight(const qreal &height) {
-    prepareGeometryChange();
     _boundingRect.setHeight(height);
   }
   inline void setWidth(const qreal &width) {
     _boundingRect.setHeight(height);
   }
   inline void setWidth(const qreal &width) {
-    prepareGeometryChange();
     _boundingRect.setWidth(width);
   }
 
     _boundingRect.setWidth(width);
   }
 
@@ -179,10 +176,6 @@ private:
   void showWebPreview(const Clickable &click);
   void clearWebPreview();
 
   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;
   qreal setGeometryByWidth(qreal w);
   friend class ChatLine;
   friend struct ContentsChatItemPrivate;