_timestampItem->setPos(0,0);
_width = _height = 0;
_selection = 0;
+
+ if(_contentsItem->data(MessageModel::FlagsRole).toInt() & Message::Highlight) setHighlighted(true);
}
ChatLine::~ChatLine() {
for(int i = minColumn; i <= ChatLineModel::ContentsColumn; i++) item((ChatLineModel::ColumnType)i)->setFullSelection();
update();
}
- }
- else {
- quint8 sel = _selection &= 0x80;
+ } else {
+ quint8 sel = _selection & 0x80;
if(sel != _selection) {
_selection = sel;
for(int i = 0; i <= ChatLineModel::ContentsColumn; i++) item((ChatLineModel::ColumnType)i)->clearSelection();