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

View File

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