Minor layout changes in SelectAccelerator window

This commit is contained in:
David Capello 2014-10-30 00:33:40 -03:00
parent d39397f4d1
commit d69a418017
2 changed files with 5 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<gui>
<window id="select_accelerator" text="Keyboard Shortcut">
<vbox expansive="true">
<grid columns="3">
<grid columns="3" expansive="true">
<label text="Key:" />
<hbox id="key_placeholder" expansive="true" />
<button text="Clear" id="clear_button" width="60" />
@ -17,7 +17,8 @@
<check text="Space" id="space" />
</hbox>
<label text="" id="assigned_to" cell_hspan="3" />
<label text="Assigned to:" />
<label text="" id="assigned_to" cell_hspan="2" />
</grid>
<separator horizontal="true" />

View File

@ -35,6 +35,7 @@ using namespace ui;
class SelectAccelerator::KeyField : public ui::Entry {
public:
KeyField(const Accelerator& accel) : ui::Entry(256, "") {
setExpansive(true);
setFocusMagnet(true);
setAccel(accel);
}
@ -175,7 +176,7 @@ void SelectAccelerator::updateAssignedTo()
}
}
assignedTo()->setText("Assigned to: " + res);
assignedTo()->setText(res);
}
} // namespace app