X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatline.h;h=afdd380fd080a2205cc66664e7c4d957b52fefc9;hp=dcf2e410107eaa27765d28b1494783328c057f8c;hb=c902a2a58671e7d145f5e879d87100844bd20df4;hpb=80fcc77b8883ef496fcf0ee9b43cf678232e175c diff --git a/src/qtui/chatline.h b/src/qtui/chatline.h index dcf2e410..afdd380f 100644 --- a/src/qtui/chatline.h +++ b/src/qtui/chatline.h @@ -52,10 +52,11 @@ public: virtual void paint (QPainter * painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); - // setColumns and setGeometryByWidth both return height - qreal setColumns(const qreal ×tampWidth, const qreal &senderWidth, const qreal &contentsWidth, - const QPointF &senderPos, const QPointF &contentsPos); - qreal setGeometryByWidth(const qreal &width, const qreal &contentsWidth); + void setFirstColumn(const qreal ×tampWidth, const qreal &senderWidth, const QPointF &senderPos); + // setSecondColumn and setGeometryByWidth both also relocate the chatline. + // the _bottom_ position is passed via linePos. linePos is updated to the top of the chatLine. + void setSecondColumn(const qreal &senderWidth, const qreal &contentsWidth, const QPointF &contentsPos, qreal &linePos); + void setGeometryByWidth(const qreal &width, const qreal &contentsWidth, qreal &linePos); void setSelected(bool selected, ChatLineModel::ColumnType minColumn = ChatLineModel::ContentsColumn); void setHighlighted(bool highlighted);