[netinstall] auto-resize the columns
- previously, the first column (name) was sized to show the names **that were visible at startup**, which fails when there are long names hidden in groups that are not expanded immediately. - change the columns to resize according to the contents; this makes the descriptions jump to the right as the name column gets wider. FIXES #1448
This commit is contained in:
parent
80cad17e97
commit
a91edfef89
@ -40,6 +40,7 @@ NetInstallPage::NetInstallPage( Config* c, QWidget* parent )
|
||||
, ui( new Ui::Page_NetInst )
|
||||
{
|
||||
ui->setupUi( this );
|
||||
ui->groupswidget->header()->setSectionResizeMode( QHeaderView::ResizeToContents );
|
||||
ui->groupswidget->setModel( c->model() );
|
||||
connect( c, &Config::statusChanged, this, &NetInstallPage::setStatus );
|
||||
connect( c, &Config::statusReady, this, &NetInstallPage::expandGroups );
|
||||
@ -88,8 +89,6 @@ NetInstallPage::expandGroups()
|
||||
ui->groupswidget->setExpanded( index, true );
|
||||
}
|
||||
}
|
||||
// Make sure all the group names are visible
|
||||
ui->groupswidget->resizeColumnToContents(0);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user