- firstColHandle->setXLimits(0, secondColumnHandleRect().left());
- secondColHandle->setXLimits(firstColumnHandleRect().right(), width() - minContentsWidth);
+ firstColHandle->setXLimits(0, secondColHandle->sceneLeft());
+ secondColHandle->setXLimits(firstColHandle->sceneRight(), width() - minContentsWidth);
void ChatScene::updateSelection(const QPointF &pos) {
// This is somewhat hacky... we look at the contents item that is at the cursor's y position (ignoring x), since
// it has the full height. From this item, we can then determine the row index and hence the ChatLine.
void ChatScene::updateSelection(const QPointF &pos) {
// This is somewhat hacky... we look at the contents item that is at the cursor's y position (ignoring x), since
// it has the full height. From this item, we can then determine the row index and hence the ChatLine.
else if(pos.x() > firstColHandlePos) curColumn = ChatLineModel::SenderColumn;
else curColumn = ChatLineModel::TimestampColumn;
else if(pos.x() > firstColHandlePos) curColumn = ChatLineModel::SenderColumn;
else curColumn = ChatLineModel::TimestampColumn;