+qreal ChatLine::setGeometry(qreal width, qreal firstHandlePos, qreal secondHandlePos) {
+ if(width != _width) prepareGeometryChange();
+ qreal firstsep = QtUi::style()->firstColumnSeparator()/2;
+ qreal secondsep = QtUi::style()->secondColumnSeparator()/2;
+
+ _timestampItem->setWidth(firstHandlePos - firstsep);
+ _senderItem->setWidth(secondHandlePos - firstHandlePos - (firstsep+secondsep));
+ _height = _contentsItem->setWidth(width - secondHandlePos - secondsep);
+
+ _senderItem->setPos(firstHandlePos + firstsep, 0);
+ _contentsItem->setPos(secondHandlePos + secondsep, 0);
+
+ _width = width;
+ return _height;