X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatlinemodel.h;h=0fb922633618713c457d389560a6939a8a1e7895;hp=a1e2c6929198a9196f4e672d06f37961acabe89e;hb=e2953de106e68e72486e294405f4bdcd33c60fba;hpb=c06d3ebf3abc0f098d6262e9bd9dd98d90edc136 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 &); };