Introduce column separator items; change most of ChatView to use qreal
[quassel.git] / src / qtui / chatitem.cpp
index bfd255c..487c2f2 100644 (file)
@@ -46,8 +46,8 @@ QVariant ChatItem::data(int role) const {
 }
 
 int ChatItem::setWidth(int w) {
-  w -= 10;
   if(w == _boundingRect.width()) return _boundingRect.height();
+  prepareGeometryChange();
   _boundingRect.setWidth(w);
   int h = heightForWidth(w);
   _boundingRect.setHeight(h);