From d9421f586f201eae587fefd200140b0e14532bdb Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 22 Oct 2015 18:37:09 +0200 Subject: [PATCH] Sync layout with PartitionPage. --- src/modules/partition/gui/ChoicePage.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 0642b219f..b057fe0ae 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -59,9 +59,11 @@ ChoicePage::ChoicePage( bool compactMode, QWidget* parent ) if ( m_compactMode ) { m_mainLayout->setDirection( QBoxLayout::TopToBottom ); + m_drivesLayout->setDirection( QBoxLayout::LeftToRight ); m_drivesView = new QComboBox( this ); m_mainLayout->setStretchFactor( m_drivesLayout, 0 ); m_mainLayout->setStretchFactor( m_rightLayout, 1 ); + m_drivesLabel->setBuddy( m_drivesView ); } else { @@ -78,14 +80,18 @@ ChoicePage::ChoicePage( bool compactMode, QWidget* parent ) drivesList->setIconSize( CalamaresUtils::defaultIconSize() / 2 ); } + m_drivesLayout->addWidget( m_drivesView ); + if ( m_compactMode ) + m_drivesLayout->addStretch(); + m_messageLabel->setWordWrap( true ); CalamaresUtils::unmarginLayout( m_itemsLayout ); // Drive selector + preview - CALAMARES_RETRANSLATE( m_drivesLabel->setText( tr( "Select drive:" ) ); ) + CALAMARES_RETRANSLATE( m_drivesLabel->setText( tr( "Storage de&vice:" ) ); ) m_previewFrame->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Expanding ); // end