Use the single parameter version of SetInsets()
While I'm at it, I can reduce the LayoutBuilder indent by 1.
This commit is contained in:
parent
c0778509d2
commit
163a2afd4f
@ -58,18 +58,15 @@ OpenWindow::OpenWindow()
|
|||||||
|
|
||||||
SetLayout(new BGroupLayout(B_HORIZONTAL));
|
SetLayout(new BGroupLayout(B_HORIZONTAL));
|
||||||
|
|
||||||
AddChild(BLayoutBuilder::Group<>()
|
AddChild(BLayoutBuilder::Group<>(B_VERTICAL, B_USE_SMALL_SPACING)
|
||||||
.AddGroup(B_VERTICAL)
|
.Add(field)
|
||||||
.Add(field)
|
.AddGroup(B_HORIZONTAL)
|
||||||
.AddGroup(B_HORIZONTAL)
|
.Add(cancelButton)
|
||||||
.Add(cancelButton)
|
.Add(probeFileButton)
|
||||||
.Add(probeFileButton)
|
.AddGlue()
|
||||||
.AddGlue()
|
.Add(probeDeviceButton)
|
||||||
.Add(probeDeviceButton)
|
|
||||||
.End()
|
|
||||||
.SetInsets(B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING,
|
|
||||||
B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING)
|
|
||||||
.End()
|
.End()
|
||||||
|
.SetInsets(B_USE_DEFAULT_SPACING)
|
||||||
);
|
);
|
||||||
|
|
||||||
CenterOnScreen();
|
CenterOnScreen();
|
||||||
|
Loading…
Reference in New Issue
Block a user