X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatline.h;h=06be6f68907c2074f07bf25a8a6e2e3a78e5e5a4;hb=732bb803a12b77b55aab33c91381ff9c2998f0e3;hp=45365208a7b03c7bc33d4fbc1a3bfd50468f0b87;hpb=77176474b628e801ba94d9d50d0d961a12aa01c4;p=quassel.git diff --git a/src/qtui/chatline.h b/src/qtui/chatline.h index 45365208..06be6f68 100644 --- a/src/qtui/chatline.h +++ b/src/qtui/chatline.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2010 by the Quassel Project * + * Copyright (C) 2005-2012 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -41,6 +41,8 @@ public: inline QModelIndex index() const { return model()->index(row(), 0); } inline MsgId msgId() const { return index().data(MessageModel::MsgIdRole).value(); } + inline Message::Type msgType() const { return (Message::Type)index().data(MessageModel::TypeRole).toInt(); } + inline int row() const { return _row; } inline void setRow(int row) { _row = row; }