- ChatLine(Message message);
- virtual ~ChatLine();
-
- qreal layout(qreal tsWidth, qreal nickWidth, qreal textWidth);
- qreal height() const { return hght; }
- int posToCursor(QPointF pos);
- void draw(QPainter *p, const QPointF &pos);
-
- enum SelectionMode { None, Partial, Full };
- void setSelection(SelectionMode, int start = 0, int end = 0);
-
- QDateTime timeStamp() const;
- QString sender() const;
- QString text() const;
- MsgId msgId() const;
- BufferInfo bufferInfo() const;
-
- bool isUrl(int pos) const;
- QUrl getUrl(int pos) const;
-
- public slots:
-
- private:
- qreal hght;
- Message msg;
- qreal tsWidth, senderWidth, textWidth;
- UiStyle::StyledString styledTimeStamp, styledSender, styledText;