mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
commit
08e4090354
11 changed files with 59 additions and 39 deletions
|
@ -32,6 +32,8 @@ BootInfoWidget::BootInfoWidget( QWidget* parent )
|
|||
, m_bootIcon( new QLabel )
|
||||
, m_bootLabel( new QLabel )
|
||||
{
|
||||
m_bootIcon->setObjectName("bootInfoIcon");
|
||||
m_bootLabel->setObjectName("bootInfoLabel");
|
||||
QHBoxLayout* mainLayout = new QHBoxLayout;
|
||||
setLayout( mainLayout );
|
||||
|
||||
|
@ -47,7 +49,7 @@ BootInfoWidget::BootInfoWidget( QWidget* parent )
|
|||
m_bootIcon->setPixmap( CalamaresUtils::defaultPixmap( CalamaresUtils::BootEnvironment,
|
||||
CalamaresUtils::Original,
|
||||
iconSize ) );
|
||||
|
||||
|
||||
QFontMetrics fm = QFontMetrics( QFont() );
|
||||
m_bootLabel->setMinimumWidth( fm.boundingRect( "BIOS" ).width() + CalamaresUtils::defaultFontHeight() / 2 );
|
||||
m_bootLabel->setAlignment( Qt::AlignCenter );
|
||||
|
|
|
@ -39,7 +39,8 @@ DeviceInfoWidget::DeviceInfoWidget( QWidget* parent )
|
|||
setLayout( mainLayout );
|
||||
|
||||
CalamaresUtils::unmarginLayout( mainLayout );
|
||||
|
||||
m_ptLabel->setObjectName("deviceInfoLabel");
|
||||
m_ptIcon->setObjectName("deviceInfoIcon");
|
||||
mainLayout->addWidget( m_ptIcon );
|
||||
mainLayout->addWidget( m_ptLabel );
|
||||
|
||||
|
|
|
@ -57,6 +57,7 @@ PartitionBarsView::PartitionBarsView( QWidget* parent )
|
|||
, canBeSelected( []( const QModelIndex& ) { return true; } )
|
||||
, m_hoveredIndex( QModelIndex() )
|
||||
{
|
||||
this->setObjectName("partitionBarView");
|
||||
setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed );
|
||||
setFrameStyle( QFrame::NoFrame );
|
||||
setSelectionBehavior( QAbstractItemView::SelectRows );
|
||||
|
|
|
@ -61,7 +61,7 @@ PartitionLabelsView::PartitionLabelsView( QWidget* parent )
|
|||
setFrameStyle( QFrame::NoFrame );
|
||||
setSelectionBehavior( QAbstractItemView::SelectRows );
|
||||
setSelectionMode( QAbstractItemView::SingleSelection );
|
||||
|
||||
this->setObjectName("partitionLabel");
|
||||
// Debug
|
||||
connect( this, &PartitionLabelsView::clicked,
|
||||
this, [=]( const QModelIndex& index )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue