mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 18:35:37 -04:00
I guess this is a better spot.
This commit is contained in:
parent
7c7c635d87
commit
16da0bd8d8
1 changed files with 8 additions and 12 deletions
|
@ -677,21 +677,9 @@ ChoicePage::updateDeviceStatePreview()
|
||||||
switch ( m_choice )
|
switch ( m_choice )
|
||||||
{
|
{
|
||||||
case Replace:
|
case Replace:
|
||||||
m_beforePartitionBarsView->setSelectionMode( QAbstractItemView::SingleSelection );
|
|
||||||
m_beforePartitionLabelsView->setSelectionMode( QAbstractItemView::SingleSelection );
|
|
||||||
break;
|
|
||||||
case Alongside:
|
case Alongside:
|
||||||
m_beforePartitionBarsView->setSelectionMode( QAbstractItemView::SingleSelection );
|
m_beforePartitionBarsView->setSelectionMode( QAbstractItemView::SingleSelection );
|
||||||
m_beforePartitionLabelsView->setSelectionMode( QAbstractItemView::SingleSelection );
|
m_beforePartitionLabelsView->setSelectionMode( QAbstractItemView::SingleSelection );
|
||||||
{
|
|
||||||
SelectionFilter filter = [ this ]( const QModelIndex& index )
|
|
||||||
{
|
|
||||||
return PartUtils::canBeResized( m_core,
|
|
||||||
index.data( PartitionModel::PartitionPathRole ).toString() );
|
|
||||||
};
|
|
||||||
m_beforePartitionBarsView->setSelectionFilter( filter );
|
|
||||||
m_beforePartitionLabelsView->setSelectionFilter( filter );
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
m_beforePartitionBarsView->setSelectionMode( QAbstractItemView::NoSelection );
|
m_beforePartitionBarsView->setSelectionMode( QAbstractItemView::NoSelection );
|
||||||
|
@ -758,6 +746,14 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice )
|
||||||
m_previewAfterFrame->show();
|
m_previewAfterFrame->show();
|
||||||
m_previewAfterLabel->show();
|
m_previewAfterLabel->show();
|
||||||
|
|
||||||
|
SelectionFilter filter = [ this ]( const QModelIndex& index )
|
||||||
|
{
|
||||||
|
return PartUtils::canBeResized( m_core,
|
||||||
|
index.data( PartitionModel::PartitionPathRole ).toString() );
|
||||||
|
};
|
||||||
|
m_beforePartitionBarsView->setSelectionFilter( filter );
|
||||||
|
m_beforePartitionLabelsView->setSelectionFilter( filter );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Erase:
|
case Erase:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue