forked from qt-creator/qt-creator
CMakePM: Settings list UI changes
The CMake parameters QTreeView has now: - alternating row colors - row selection Both key and value get the same font and foreground stylings. - bold when the key is new or the value has been changed by user - italic when the key has been inherited from kit or initial config - red when there are differences between the inherited value and the current value Change-Id: If09bb2c3e25f59938c5f56e6dd0d6817dfe442cc Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -252,7 +252,8 @@ 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::SelectItems);
|
||||
m_configView->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
m_configView->setAlternatingRowColors(true);
|
||||
m_configView->setFrameShape(QFrame::NoFrame);
|
||||
m_configView->setItemDelegate(new ConfigModelItemDelegate(m_buildConfiguration->project()->projectDirectory(),
|
||||
m_configView));
|
||||
|
||||
Reference in New Issue
Block a user