- virtual QVariant data(int column, int role) const;
- virtual inline bool setData(int column, const QVariant &value, int role) { Q_UNUSED(column); Q_UNUSED(value); Q_UNUSED(role); return false; }
+ virtual QVariant data(int column, int role) const;
+ virtual bool setData(int column, const QVariant &value, int role);
+
+ virtual inline const Message &message() const { return _styledMsg; }
+ virtual inline const QDateTime ×tamp() const { return _styledMsg.timestamp(); }
+ virtual inline const MsgId &msgId() const { return _styledMsg.msgId(); }
+ virtual inline const BufferId &bufferId() const { return _styledMsg.bufferId(); }
+ virtual inline void setBufferId(BufferId bufferId) { _styledMsg.setBufferId(bufferId); }
+ virtual inline Message::Type msgType() const { return _styledMsg.type(); }
+ virtual inline Message::Flags msgFlags() const { return _styledMsg.flags(); }
+
+ virtual inline void invalidateWrapList() { _wrapList.clear(); }
+
+ /// Used to store information about words to be used for wrapping
+ struct Word {
+ quint16 start;
+ qreal endX;
+ qreal width;
+ qreal trailing;
+ };
+ typedef QVector<Word> WrapList;