From a57a030ee2eb0a68866796af316b09b9fde2b95c Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 5 Sep 2019 06:33:39 -0400 Subject: [PATCH] [packagechooser] Massage the list view to be narrower --- src/modules/packagechooser/PackageChooserPage.cpp | 4 ++++ src/modules/packagechooser/page_package.ui | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/packagechooser/PackageChooserPage.cpp b/src/modules/packagechooser/PackageChooserPage.cpp index 2c66d4724..b4d9f99af 100644 --- a/src/modules/packagechooser/PackageChooserPage.cpp +++ b/src/modules/packagechooser/PackageChooserPage.cpp @@ -20,6 +20,7 @@ #include "ui_page_package.h" +#include "utils/CalamaresUtilsGui.h" #include "utils/Logger.h" #include "utils/Retranslator.h" @@ -50,6 +51,9 @@ PackageChooserPage::PackageChooserPage( PackageChooserMode mode, QWidget* parent case PackageChooserMode::RequiredMultiple: ui->products->setSelectionMode( QAbstractItemView::ExtendedSelection ); } + + ui->products->setMinimumWidth( 10 * CalamaresUtils::defaultFontHeight() ); + } /** @brief size the given @p pixmap to @p size diff --git a/src/modules/packagechooser/page_package.ui b/src/modules/packagechooser/page_package.ui index 496c478a1..8349f2b52 100644 --- a/src/modules/packagechooser/page_package.ui +++ b/src/modules/packagechooser/page_package.ui @@ -21,11 +21,11 @@ - + - + 0 1