Add label to PCM state preview.

This commit is contained in:
Teo Mrnjavac 2015-10-30 13:41:09 +01:00
parent 65fd43729c
commit 32fd12d501

View file

@ -403,15 +403,20 @@ ChoicePage::updateActionChoicePreview( Device* currentDevice, ChoicePage::Choice
m_previewAfterFrame->setLayout( layout ); m_previewAfterFrame->setLayout( layout );
layout->setMargin( 0 ); layout->setMargin( 0 );
QLabel* label = new QLabel;
layout->addWidget( label );
switch ( choice ) switch ( choice )
{ {
case Alongside: case Alongside:
// split widget goes here // split widget goes here
label->setText( tr( "Drag to split:" ) );
break; break;
case Erase: case Erase:
case Replace: case Replace:
{ {
label->setText( tr( "Preview:" ) );
PartitionPreview* preview = new PartitionPreview( m_previewAfterFrame ); PartitionPreview* preview = new PartitionPreview( m_previewAfterFrame );
preview->setLabelsVisible( true ); preview->setLabelsVisible( true );