X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatlinemodel.h;h=0fb922633618713c457d389560a6939a8a1e7895;hb=70ededc490cb201e52b6d8ca4c2364d4a001b6c4;hp=a1e2c6929198a9196f4e672d06f37961acabe89e;hpb=3197b8b309f09ac1f4db54fa8fa819e33b87383e;p=quassel.git diff --git a/src/qtui/chatlinemodel.h b/src/qtui/chatlinemodel.h index a1e2c692..0fb92263 100644 --- a/src/qtui/chatlinemodel.h +++ b/src/qtui/chatlinemodel.h @@ -26,25 +26,23 @@ 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 width; + qreal trailing; + }; + typedef QVector WrapList; + +protected: + virtual MessageModelItem *createMessageModelItem(const Message &); };