mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04:00
Use new Labels view.
This commit is contained in:
parent
eed8d3b83b
commit
1ad6c7e8ac
4 changed files with 36 additions and 9 deletions
|
@ -26,6 +26,7 @@
|
|||
#include "core/PartitionIterator.h"
|
||||
#include "gui/PartitionSplitterWidget.h"
|
||||
#include "gui/PartitionBarsView.h"
|
||||
#include "gui/PartitionLabelsView.h"
|
||||
|
||||
#include "JobQueue.h"
|
||||
#include "GlobalStorage.h"
|
||||
|
@ -65,8 +66,9 @@ AlongsidePage::AlongsidePage( QWidget* parent )
|
|||
partitionsComboLayout->addStretch();
|
||||
|
||||
m_previewWidget = new PartitionBarsView;
|
||||
m_previewWidget->setLabelsVisible( true );
|
||||
m_previewLabels = new PartitionLabelsView;
|
||||
mainLayout->addWidget( m_previewWidget );
|
||||
mainLayout->addWidget( m_previewLabels );
|
||||
|
||||
QLabel* allocateSpaceLabel = new QLabel();
|
||||
mainLayout->addWidget( allocateSpaceLabel );
|
||||
|
@ -194,6 +196,7 @@ AlongsidePage::onPartitionSelected( int comboBoxIndex )
|
|||
partitionModelBefore->setParent( m_previewWidget );
|
||||
|
||||
m_previewWidget->setModel( partitionModelBefore );
|
||||
m_previewLabels->setModel( partitionModelBefore );
|
||||
m_splitterWidget->init( allPartitionItems );
|
||||
|
||||
m_splitterWidget->setSplitPartition( candidate->partitionPath(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue