Avoid unnecessary casts.
This commit is contained in:
parent
f01d802d40
commit
3cb293aa75
@ -627,17 +627,12 @@ ChoicePage::updateActionChoicePreview( ChoicePage::Choice choice )
|
||||
break;
|
||||
default:
|
||||
previewSelectionMode = QAbstractItemView::NoSelection;
|
||||
m_beforePartitionBarsView->disconnect( SIGNAL( clicked() ) );
|
||||
m_beforePartitionLabelsView->disconnect( SIGNAL( clicked() ) );
|
||||
}
|
||||
|
||||
foreach ( QObject* child, m_previewBeforeFrame->children() )
|
||||
{
|
||||
PartitionBarsView* pbv = qobject_cast< PartitionBarsView* >( child );
|
||||
if ( pbv )
|
||||
pbv->setSelectionMode( previewSelectionMode );
|
||||
PartitionLabelsView* plv = qobject_cast< PartitionLabelsView* >( child );
|
||||
if ( plv )
|
||||
plv->setSelectionMode( previewSelectionMode );
|
||||
}
|
||||
m_beforePartitionBarsView->setSelectionMode( previewSelectionMode );
|
||||
m_beforePartitionLabelsView->setSelectionMode( previewSelectionMode );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user