From a3a8e528916f4930bd731ed074bcdd190d4fe327 Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Mon, 14 Jan 2008 23:46:37 +0000 Subject: [PATCH] another tiny commit: made keyboardselections in the buffermodel to span over the whole row. jeah I know... pretty unimpressive... --- src/client/selectionmodelsynchronizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/selectionmodelsynchronizer.cpp b/src/client/selectionmodelsynchronizer.cpp index ef0b9478..169fddcd 100644 --- a/src/client/selectionmodelsynchronizer.cpp +++ b/src/client/selectionmodelsynchronizer.cpp @@ -80,7 +80,7 @@ void SelectionModelSynchronizer::removeSelectionModel(MappedSelectionModel *mode } void SelectionModelSynchronizer::_mappedCurrentChanged(const QModelIndex ¤t) { - emit setCurrentIndex(current, QItemSelectionModel::ClearAndSelect); + emit setCurrentIndex(current, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows); } void SelectionModelSynchronizer::_mappedSelectionChanged(const QItemSelection &selected) { @@ -89,7 +89,7 @@ void SelectionModelSynchronizer::_mappedSelectionChanged(const QItemSelection &s void SelectionModelSynchronizer::_regularCurrentChanged(const QModelIndex &newCurrent, const QModelIndex &oldCurrent) { Q_UNUSED(oldCurrent) - emit setCurrentIndex(newCurrent, QItemSelectionModel::ClearAndSelect); + emit setCurrentIndex(newCurrent, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows); } void SelectionModelSynchronizer::_regularSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected) { -- 2.20.1