From 983c16d991e48b48b0731f8d108a252aa1c9fd2f Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 13 Jan 2016 18:09:20 +0100 Subject: [PATCH] Fix up views in summary. --- src/modules/partition/gui/PartitionViewStep.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/partition/gui/PartitionViewStep.cpp b/src/modules/partition/gui/PartitionViewStep.cpp index 01bd0aee3..d6deba429 100644 --- a/src/modules/partition/gui/PartitionViewStep.cpp +++ b/src/modules/partition/gui/PartitionViewStep.cpp @@ -210,25 +210,29 @@ PartitionViewStep::createSummaryWidget() const previewLabels = new PartitionLabelsView; preview->setModel( info.partitionModelBefore ); previewLabels->setModel( info.partitionModelBefore ); + preview->setSelectionMode( QAbstractItemView::NoSelection ); + previewLabels->setSelectionMode( QAbstractItemView::NoSelection ); info.partitionModelBefore->setParent( widget ); field = new QVBoxLayout; CalamaresUtils::unmarginLayout( field ); field->setSpacing( 6 ); field->addWidget( preview ); field->addWidget( previewLabels ); - formLayout->addRow( tr( "Current state:" ), field ); + formLayout->addRow( tr( "Before:" ), field ); preview = new PartitionBarsView; previewLabels = new PartitionLabelsView; preview->setModel( info.partitionModelAfter ); previewLabels->setModel( info.partitionModelAfter ); + preview->setSelectionMode( QAbstractItemView::NoSelection ); + previewLabels->setSelectionMode( QAbstractItemView::NoSelection ); info.partitionModelAfter->setParent( widget ); field = new QVBoxLayout; CalamaresUtils::unmarginLayout( field ); field->setSpacing( 6 ); field->addWidget( preview ); field->addWidget( previewLabels ); - formLayout->addRow( tr( "Your changes:" ), field ); + formLayout->addRow( tr( "After:" ), field ); } QStringList jobsLines; foreach ( const Calamares::job_ptr& job, jobs() )