From 32fd12d50134722fe5a97a0d3901cfeee1b878d9 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 30 Oct 2015 13:41:09 +0100 Subject: [PATCH] Add label to PCM state preview. --- src/modules/partition/gui/ChoicePage.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index e99796be8..9e3837340 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -403,15 +403,20 @@ ChoicePage::updateActionChoicePreview( Device* currentDevice, ChoicePage::Choice m_previewAfterFrame->setLayout( layout ); layout->setMargin( 0 ); + QLabel* label = new QLabel; + layout->addWidget( label ); + switch ( choice ) { case Alongside: // split widget goes here + label->setText( tr( "Drag to split:" ) ); break; case Erase: case Replace: { + label->setText( tr( "Preview:" ) ); PartitionPreview* preview = new PartitionPreview( m_previewAfterFrame ); preview->setLabelsVisible( true );