mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Allow hiding extended partition in Labels view.
This commit is contained in:
parent
93bebfd3e4
commit
b374404c6f
2 changed files with 13 additions and 1 deletions
|
@ -164,7 +164,9 @@ PartitionLabelsView::getIndexesToDraw( const QModelIndex& parent ) const
|
|||
index.data( PartitionModel::SizeRole ).toLongLong() < maxHiddenB )
|
||||
continue;
|
||||
|
||||
list.append( index );
|
||||
if ( !modl->hasChildren( index ) || !m_extendedPartitionHidden )
|
||||
list.append( index );
|
||||
|
||||
if ( modl->hasChildren( index ) )
|
||||
list.append( getIndexesToDraw( index ) );
|
||||
}
|
||||
|
@ -514,6 +516,13 @@ PartitionLabelsView::setSelectionFilter( SelectionFilter canBeSelected )
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
PartitionLabelsView::setExtendedPartitionHidden( bool hidden )
|
||||
{
|
||||
m_extendedPartitionHidden = hidden;
|
||||
}
|
||||
|
||||
|
||||
QModelIndex
|
||||
PartitionLabelsView::moveCursor( CursorAction cursorAction, Qt::KeyboardModifiers modifiers )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue