Make after partition views members in ChoicePage.
This commit is contained in:
parent
8a44ffe462
commit
2a61114d9e
@ -559,22 +559,22 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice )
|
|||||||
case Erase:
|
case Erase:
|
||||||
case Replace:
|
case Replace:
|
||||||
{
|
{
|
||||||
PartitionBarsView* preview = new PartitionBarsView( m_previewAfterFrame );
|
m_afterPartitionBarsView = new PartitionBarsView( m_previewAfterFrame );
|
||||||
PartitionLabelsView* previewLabels = new PartitionLabelsView( m_previewAfterFrame );
|
m_afterPartitionLabelsView = new PartitionLabelsView( m_previewAfterFrame );
|
||||||
previewLabels->setCustomNewRootLabel( Calamares::Branding::instance()->
|
m_afterPartitionLabelsView->setCustomNewRootLabel( Calamares::Branding::instance()->
|
||||||
string( Calamares::Branding::BootloaderEntryName ) );
|
string( Calamares::Branding::BootloaderEntryName ) );
|
||||||
|
|
||||||
PartitionModel* model = m_core->partitionModelForDevice( selectedDevice() );
|
PartitionModel* model = m_core->partitionModelForDevice( selectedDevice() );
|
||||||
|
|
||||||
// The QObject parents tree is meaningful for memory management here,
|
// The QObject parents tree is meaningful for memory management here,
|
||||||
// see qDeleteAll above.
|
// see qDeleteAll above.
|
||||||
preview->setModel( model );
|
m_afterPartitionBarsView->setModel( model );
|
||||||
previewLabels->setModel( model );
|
m_afterPartitionLabelsView->setModel( model );
|
||||||
preview->setSelectionMode( QAbstractItemView::NoSelection );
|
m_afterPartitionBarsView->setSelectionMode( QAbstractItemView::NoSelection );
|
||||||
previewLabels->setSelectionMode( QAbstractItemView::NoSelection );
|
m_afterPartitionLabelsView->setSelectionMode( QAbstractItemView::NoSelection );
|
||||||
|
|
||||||
layout->addWidget( preview );
|
layout->addWidget( m_afterPartitionBarsView );
|
||||||
layout->addWidget( previewLabels );
|
layout->addWidget( m_afterPartitionLabelsView );
|
||||||
|
|
||||||
m_previewAfterFrame->show();
|
m_previewAfterFrame->show();
|
||||||
|
|
||||||
|
@ -101,6 +101,8 @@ private:
|
|||||||
|
|
||||||
QPointer< PartitionBarsView > m_beforePartitionBarsView;
|
QPointer< PartitionBarsView > m_beforePartitionBarsView;
|
||||||
QPointer< PartitionLabelsView > m_beforePartitionLabelsView;
|
QPointer< PartitionLabelsView > m_beforePartitionLabelsView;
|
||||||
|
QPointer< PartitionBarsView > m_afterPartitionBarsView;
|
||||||
|
QPointer< PartitionLabelsView > m_afterPartitionLabelsView;
|
||||||
|
|
||||||
int m_lastSelectedDeviceIndex;
|
int m_lastSelectedDeviceIndex;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user