CStringEditor: Collapse QList construction into one line
This commit is contained in:
parent
9c9e5975b2
commit
f5b5c8ddc5
|
@ -142,8 +142,7 @@ void CStringEditor::InitUI()
|
||||||
SET_WINDOWTITLE_APPVARS(WindowTitle);
|
SET_WINDOWTITLE_APPVARS(WindowTitle);
|
||||||
|
|
||||||
// Initialize the splitter so top split takes as much space as possible
|
// Initialize the splitter so top split takes as much space as possible
|
||||||
QList<int> SplitterSizes;
|
const QList<int> SplitterSizes{static_cast<int>(height() * 0.95), static_cast<int>(height() * 0.05)};
|
||||||
SplitterSizes << (height() * 0.95) << (height() * 0.05);
|
|
||||||
mpUI->splitter->setSizes(SplitterSizes);
|
mpUI->splitter->setSizes(SplitterSizes);
|
||||||
|
|
||||||
// Initialize UI
|
// Initialize UI
|
||||||
|
|
Loading…
Reference in New Issue