X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatlinemodel.h;h=4f64efe1dac4e17fcb829f1684074c31f527c2ed;hp=a1e2c6929198a9196f4e672d06f37961acabe89e;hb=a19d4cb095e9711028c70f651012bb558e17a6c2;hpb=3197b8b309f09ac1f4db54fa8fa819e33b87383e diff --git a/src/qtui/chatlinemodel.h b/src/qtui/chatlinemodel.h index a1e2c692..4f64efe1 100644 --- a/src/qtui/chatlinemodel.h +++ b/src/qtui/chatlinemodel.h @@ -26,32 +26,31 @@ class ChatLineModel : public MessageModel { Q_OBJECT - 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 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 WrapList; + +protected: + virtual MessageModelItem *createMessageModelItem(const Message &); }; QDataStream &operator<<(QDataStream &out, const ChatLineModel::WrapList); QDataStream &operator>>(QDataStream &in, ChatLineModel::WrapList &); -Q_DECLARE_METATYPE(ChatLineModel::WrapList); +Q_DECLARE_METATYPE(ChatLineModel::WrapList) #endif