From bc160ebe6381be91a5b6f9386f6253036f14f7c1 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Wed, 2 Feb 2022 22:11:47 +0100 Subject: [PATCH] CMakePM: Revert selectedRows back to selectedItems As it turns out changing to selectedRows resulted in having the keys copied twice to clipboard. The change would require some code adaptation. Amends 0020ef7e302121b1506a1d9a16c7c10d2dec96c7 Change-Id: Ie1decd154f7d22825f4d4eecd0bf544ecac7aa26 Reviewed-by: Alessandro Portale --- src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp b/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp index e55dbbb2faf..cec02706263 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildconfiguration.cpp @@ -252,7 +252,7 @@ CMakeBuildSettingsWidget::CMakeBuildSettingsWidget(CMakeBuildConfiguration *bc) m_configView->sortByColumn(0, Qt::AscendingOrder); auto stretcher = new HeaderViewStretcher(m_configView->header(), 0); m_configView->setSelectionMode(QAbstractItemView::ExtendedSelection); - m_configView->setSelectionBehavior(QAbstractItemView::SelectRows); + m_configView->setSelectionBehavior(QAbstractItemView::SelectItems); m_configView->setAlternatingRowColors(true); m_configView->setFrameShape(QFrame::NoFrame); m_configView->setItemDelegate(new ConfigModelItemDelegate(m_buildConfiguration->project()->projectDirectory(),