|
|
|
@ -496,7 +496,9 @@ ChoicePage::updateDeviceStatePreview( Device* currentDevice )
|
|
|
|
|
model->setParent( preview );
|
|
|
|
|
|
|
|
|
|
preview->setModel( model );
|
|
|
|
|
preview->setSelectionMode( QAbstractItemView::NoSelection );
|
|
|
|
|
previewLabels->setModel( model );
|
|
|
|
|
previewLabels->setSelectionMode( QAbstractItemView::NoSelection );
|
|
|
|
|
|
|
|
|
|
layout->addWidget( preview );
|
|
|
|
|
layout->addWidget( previewLabels );
|
|
|
|
@ -554,6 +556,12 @@ ChoicePage::updateActionChoicePreview( Device* currentDevice, ChoicePage::Choice
|
|
|
|
|
previewLabels->setSelectionModel( preview->selectionModel() );
|
|
|
|
|
sm->deleteLater();
|
|
|
|
|
|
|
|
|
|
if ( choice == Erase )
|
|
|
|
|
{
|
|
|
|
|
preview->setSelectionMode( QAbstractItemView::NoSelection );
|
|
|
|
|
previewLabels->setSelectionMode( QAbstractItemView::NoSelection );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
layout->addWidget( preview );
|
|
|
|
|
layout->addWidget( previewLabels );
|
|
|
|
|
|
|
|
|
|