- private:
- UiStyle::StyledText _styledTimestamp, _styledText, _styledSender;
-
- QDateTime _timestamp;
- MsgId _msgId;
-
- ChatItem *_tsItem, *_senderItem, *_textItem;
- int _tsColWidth, _senderColWidth, _textColWidth;
-};
-
-//! This contains the data of a ChatLine, i.e. mainly the styled message contents.
-/** By separating ChatLine and ChatLineData, ChatLine itself is very small and we can reuse the
- * same contents in several ChatLine objects without duplicating data.
- */
-class ChatLineData {
+ inline int row() { return _row; }
+ inline void setRow(int row) { _row = row; }
+ inline qreal width() const { return _width; }
+ inline qreal height() const { return _height; }
+ ChatItem &item(ChatLineModel::ColumnType);