CCharacterEditor: Collapse QList construction into one line

This commit is contained in:
Lioncash 2020-07-03 08:40:58 -04:00
parent a419e6cdab
commit fa7b6a1bfe
1 changed files with 1 additions and 2 deletions

View File

@ -62,8 +62,7 @@ CCharacterEditor::CCharacterEditor(CAnimSet *pSet, QWidget *parent)
// Init skeleton tree view // Init skeleton tree view
ui->SkeletonHierarchyTreeView->setModel(&mSkeletonModel); ui->SkeletonHierarchyTreeView->setModel(&mSkeletonModel);
QList<int> SplitterSizes; const QList<int> SplitterSizes{static_cast<int>(width() * 0.2), static_cast<int>(width() * 0.8)};
SplitterSizes << width() * 0.2 << width() * 0.8;
ui->splitter->setSizes(SplitterSizes); ui->splitter->setSizes(SplitterSizes);
connect(ui->SkeletonHierarchyTreeView->selectionModel(), &QItemSelectionModel::currentChanged, this, connect(ui->SkeletonHierarchyTreeView->selectionModel(), &QItemSelectionModel::currentChanged, this,