mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Make after partition views members in ChoicePage.
This commit is contained in:
parent
8a44ffe462
commit
2a61114d9e
2 changed files with 11 additions and 9 deletions
|
@ -559,22 +559,22 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice )
|
|||
case Erase:
|
||||
case Replace:
|
||||
{
|
||||
PartitionBarsView* preview = new PartitionBarsView( m_previewAfterFrame );
|
||||
PartitionLabelsView* previewLabels = new PartitionLabelsView( m_previewAfterFrame );
|
||||
previewLabels->setCustomNewRootLabel( Calamares::Branding::instance()->
|
||||
m_afterPartitionBarsView = new PartitionBarsView( m_previewAfterFrame );
|
||||
m_afterPartitionLabelsView = new PartitionLabelsView( m_previewAfterFrame );
|
||||
m_afterPartitionLabelsView->setCustomNewRootLabel( Calamares::Branding::instance()->
|
||||
string( Calamares::Branding::BootloaderEntryName ) );
|
||||
|
||||
PartitionModel* model = m_core->partitionModelForDevice( selectedDevice() );
|
||||
|
||||
// The QObject parents tree is meaningful for memory management here,
|
||||
// see qDeleteAll above.
|
||||
preview->setModel( model );
|
||||
previewLabels->setModel( model );
|
||||
preview->setSelectionMode( QAbstractItemView::NoSelection );
|
||||
previewLabels->setSelectionMode( QAbstractItemView::NoSelection );
|
||||
m_afterPartitionBarsView->setModel( model );
|
||||
m_afterPartitionLabelsView->setModel( model );
|
||||
m_afterPartitionBarsView->setSelectionMode( QAbstractItemView::NoSelection );
|
||||
m_afterPartitionLabelsView->setSelectionMode( QAbstractItemView::NoSelection );
|
||||
|
||||
layout->addWidget( preview );
|
||||
layout->addWidget( previewLabels );
|
||||
layout->addWidget( m_afterPartitionBarsView );
|
||||
layout->addWidget( m_afterPartitionLabelsView );
|
||||
|
||||
m_previewAfterFrame->show();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue