X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatline.cpp;h=c09bdee01626354b356c8b79214f2f336b9f2aac;hp=e55ab14f8ad487c8c59edf3e376def25fb661e3b;hb=17a68937d25404ddb804f443629313a7c873dbe1;hpb=15c352c7ae1ea3d0884d8dc641b7d642a51179fd diff --git a/src/qtui/chatline.cpp b/src/qtui/chatline.cpp index e55ab14f..c09bdee0 100644 --- a/src/qtui/chatline.cpp +++ b/src/qtui/chatline.cpp @@ -65,18 +65,18 @@ ChatItem &ChatLine::item(ChatLineModel::ColumnType column) { } } -qreal ChatLine::setGeometry(qreal width, qreal firstHandlePos, qreal secondHandlePos) { +qreal ChatLine::setGeometry(qreal width) { if(width != _width) prepareGeometryChange(); - qreal firstSepWidth = QtUi::style()->firstColumnSeparator(); - qreal secondSepWidth = QtUi::style()->secondColumnSeparator(); + QRectF firstColHandleRect = chatScene()->firstColumnHandleRect(); + QRectF secondColHandleRect = chatScene()->secondColumnHandleRect(); - _height = _contentsItem.setGeometry(width - secondHandlePos - secondSepWidth); - _timestampItem.setGeometry(firstHandlePos, _height); - _senderItem.setGeometry(secondHandlePos - firstHandlePos - firstSepWidth, _height); + _height = _contentsItem.setGeometry(width - secondColHandleRect.right()); + _timestampItem.setGeometry(firstColHandleRect.left(), _height); + _senderItem.setGeometry(secondColHandleRect.left() - firstColHandleRect.right(), _height); - _senderItem.setPos(firstHandlePos + firstSepWidth, 0); - _contentsItem.setPos(secondHandlePos + secondSepWidth, 0); + _senderItem.setPos(firstColHandleRect.right(), 0); + _contentsItem.setPos(secondColHandleRect.right(), 0); _width = width; return _height;