diff --git a/src/modules/welcome/checker/ResultsListWidget.cpp b/src/modules/welcome/checker/ResultsListWidget.cpp index 956ea991b..4a026ea9f 100644 --- a/src/modules/welcome/checker/ResultsListWidget.cpp +++ b/src/modules/welcome/checker/ResultsListWidget.cpp @@ -35,17 +35,17 @@ #include /** @brief A "details" dialog for the results-list - * + * * This displays the same RequirementsList as ResultsListWidget, * but the *details* part rather than the show description. - * + * * This is an internal-to-the-widget class. */ class ResultsListDialog : public QDialog { public: /** @brief Create a dialog for the given @p checkEntries list of requirements. - * + * * The list must continue to exist for the lifetime of the dialog, * or UB happens. */ @@ -134,13 +134,14 @@ ResultsListWidget::ResultsListWidget( QWidget* parent ) m_mainLayout = new QVBoxLayout; setLayout( m_mainLayout ); + int paddingSize = qBound( 32, CalamaresUtils::defaultFontHeight() * 4, 128 ); + QHBoxLayout* spacerLayout = new QHBoxLayout; m_mainLayout->addLayout( spacerLayout ); - m_paddingSize = qBound( 32, CalamaresUtils::defaultFontHeight() * 4, 128 ); - spacerLayout->addSpacing( m_paddingSize ); + spacerLayout->addSpacing( paddingSize ); m_entriesLayout = new QVBoxLayout; spacerLayout->addLayout( m_entriesLayout ); - spacerLayout->addSpacing( m_paddingSize ); + spacerLayout->addSpacing( paddingSize ); CalamaresUtils::unmarginLayout( spacerLayout ); } @@ -260,7 +261,6 @@ ResultsListWidget::init( const Calamares::RequirementsList& checkEntries ) } - void ResultsListWidget::showDetailsDialog( const Calamares::RequirementsList& checkEntries ) { diff --git a/src/modules/welcome/checker/ResultsListWidget.h b/src/modules/welcome/checker/ResultsListWidget.h index 3be02b0d0..588e6c3bc 100644 --- a/src/modules/welcome/checker/ResultsListWidget.h +++ b/src/modules/welcome/checker/ResultsListWidget.h @@ -38,7 +38,6 @@ private: QBoxLayout* m_mainLayout; QBoxLayout* m_entriesLayout; - int m_paddingSize; }; -#endif // CHECKER_RESULTSLISTWIDGET_H +#endif // CHECKER_RESULTSLISTWIDGET_H