[packagechooser] Coding style

This commit is contained in:
Adriaan de Groot 2020-01-06 17:55:13 +01:00
parent cefb66ab5b
commit d21ed0cc7f
2 changed files with 3 additions and 2 deletions

View File

@ -53,7 +53,6 @@ PackageChooserPage::PackageChooserPage( PackageChooserMode mode, QWidget* parent
} }
ui->products->setMinimumWidth( 10 * CalamaresUtils::defaultFontHeight() ); ui->products->setMinimumWidth( 10 * CalamaresUtils::defaultFontHeight() );
} }
/** @brief size the given @p pixmap to @p size /** @brief size the given @p pixmap to @p size

View File

@ -148,7 +148,9 @@ void
PackageChooserViewStep::onActivate() PackageChooserViewStep::onActivate()
{ {
if ( !m_widget->hasSelection() ) if ( !m_widget->hasSelection() )
{
m_widget->setSelection( m_defaultIdx ); m_widget->setSelection( m_defaultIdx );
}
} }
void void
@ -221,7 +223,7 @@ PackageChooserViewStep::setConfigurationMap( const QVariantMap& configurationMap
// find default item // find default item
if ( first_time && m_model && !default_item_id.isEmpty() ) if ( first_time && m_model && !default_item_id.isEmpty() )
{ {
for (int item_n = 0; item_n < m_model->packageCount(); ++item_n) for ( int item_n = 0; item_n < m_model->packageCount(); ++item_n )
{ {
QModelIndex item_idx = m_model->index( item_n, 0 ); QModelIndex item_idx = m_model->index( item_n, 0 );
QVariant item_id = m_model->data( item_idx, PackageListModel::IdRole ); QVariant item_id = m_model->data( item_idx, PackageListModel::IdRole );