+ return QVariant();
+}
+
+QVariant ChatLineModelItem::senderData(int role) const {
+ switch(role) {
+ case ChatLineModel::DisplayRole:
+ return _styledMsg.decoratedSender();
+ case ChatLineModel::EditRole:
+ return _styledMsg.plainSender();
+ case ChatLineModel::FormatRole:
+ return QVariant::fromValue<UiStyle::FormatList>(UiStyle::FormatList() << qMakePair((quint16)0, (quint32)_styledMsg.senderFormat()));
+ }
+ return QVariant();
+}
+
+QVariant ChatLineModelItem::contentsData(int role) const {
+ if(_styledMsg.needsStyling())
+ _styledMsg.style(QtUi::style());