- public:
- enum ChatLineRole {
- WrapListRole = MessageModel::UserRole
- };
-
- ChatLineModel(QObject *parent = 0);
- virtual ~ChatLineModel();
-
- /// Used to store information about words to be used for wrapping
- struct Word {
- quint16 start;
- qreal width;
- qreal trailing;
- };
-
- typedef QVector<Word> WrapList;
-
- protected:
- virtual MessageModelItem *createMessageModelItem(const Message &);
+public:
+ enum ChatLineRole {
+ WrapListRole = MessageModel::UserRole
+ };
+
+ ChatLineModel(QObject *parent = 0);
+
+ /// 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;
+
+protected:
+ virtual MessageModelItem *createMessageModelItem(const Message &);