mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[welcome] Drop unneeded member variable
This commit is contained in:
parent
ed1b3b576f
commit
320dcac946
2 changed files with 8 additions and 9 deletions
|
@ -35,17 +35,17 @@
|
|||
#include <QLabel>
|
||||
|
||||
/** @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 )
|
||||
{
|
||||
|
|
|
@ -38,7 +38,6 @@ private:
|
|||
|
||||
QBoxLayout* m_mainLayout;
|
||||
QBoxLayout* m_entriesLayout;
|
||||
int m_paddingSize;
|
||||
};
|
||||
|
||||
#endif // CHECKER_RESULTSLISTWIDGET_H
|
||||
#endif // CHECKER_RESULTSLISTWIDGET_H
|
||||
|
|
Loading…
Add table
Reference in a new issue