int ChatItem::setWidth(int w) {
if(w == _boundingRect.width()) return _boundingRect.height();
+ prepareGeometryChange();
_boundingRect.setWidth(w);
int h = heightForWidth(w);
_boundingRect.setHeight(h);
Q_UNUSED(option); Q_UNUSED(widget);
if(!haveLayout()) updateLayout();
_layout->draw(painter, QPointF(0,0), QVector<QTextLayout::FormatRange>(), boundingRect());
- //painter->drawRect(boundingRect());
-
}
/*