X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatline.cpp;h=e55ab14f8ad487c8c59edf3e376def25fb661e3b;hp=a28f4e84eca13fa6d6d3589bec84bb17ece29237;hb=c5c74323b6d8f3fc6775ca1d08cb84c602bac58d;hpb=2a7318219cc91be4bc50d2cef605d216834d1687 diff --git a/src/qtui/chatline.cpp b/src/qtui/chatline.cpp index a28f4e84..e55ab14f 100644 --- a/src/qtui/chatline.cpp +++ b/src/qtui/chatline.cpp @@ -68,15 +68,15 @@ ChatItem &ChatLine::item(ChatLineModel::ColumnType column) { qreal ChatLine::setGeometry(qreal width, qreal firstHandlePos, qreal secondHandlePos) { if(width != _width) prepareGeometryChange(); - qreal firstsep = QtUi::style()->firstColumnSeparator()/2; - qreal secondsep = QtUi::style()->secondColumnSeparator()/2; + qreal firstSepWidth = QtUi::style()->firstColumnSeparator(); + qreal secondSepWidth = QtUi::style()->secondColumnSeparator(); - _height = _contentsItem.setGeometry(width - secondHandlePos - secondsep); - _timestampItem.setGeometry(firstHandlePos - firstsep, _height); - _senderItem.setGeometry(secondHandlePos - firstHandlePos - (firstsep+secondsep), _height); + _height = _contentsItem.setGeometry(width - secondHandlePos - secondSepWidth); + _timestampItem.setGeometry(firstHandlePos, _height); + _senderItem.setGeometry(secondHandlePos - firstHandlePos - firstSepWidth, _height); - _senderItem.setPos(firstHandlePos + firstsep, 0); - _contentsItem.setPos(secondHandlePos + secondsep, 0); + _senderItem.setPos(firstHandlePos + firstSepWidth, 0); + _contentsItem.setPos(secondHandlePos + secondSepWidth, 0); _width = width; return _height;