CCharacterEditor: Collapse QList construction into one line
This commit is contained in:
parent
a419e6cdab
commit
fa7b6a1bfe
|
@ -62,8 +62,7 @@ CCharacterEditor::CCharacterEditor(CAnimSet *pSet, QWidget *parent)
|
|||
|
||||
// Init skeleton tree view
|
||||
ui->SkeletonHierarchyTreeView->setModel(&mSkeletonModel);
|
||||
QList<int> SplitterSizes;
|
||||
SplitterSizes << width() * 0.2 << width() * 0.8;
|
||||
const QList<int> SplitterSizes{static_cast<int>(width() * 0.2), static_cast<int>(width() * 0.8)};
|
||||
ui->splitter->setSizes(SplitterSizes);
|
||||
|
||||
connect(ui->SkeletonHierarchyTreeView->selectionModel(), &QItemSelectionModel::currentChanged, this,
|
||||
|
|
Loading…
Reference in New Issue