aboutsummaryrefslogtreecommitdiff
path: root/backends/keymapper
diff options
context:
space:
mode:
authorTarek Soliman2011-12-30 15:51:08 -0600
committerTarek Soliman2011-12-30 15:52:40 -0600
commitb89bc000d96fce9d4e977b8ad59391282e35704e (patch)
tree2616d9d4a3d4c4656fa4b13abb447793ea2b7a0f /backends/keymapper
parent16d529cdc335feea858fde690fc1b3eae48449a2 (diff)
downloadscummvm-rg350-b89bc000d96fce9d4e977b8ad59391282e35704e.tar.gz
scummvm-rg350-b89bc000d96fce9d4e977b8ad59391282e35704e.tar.bz2
scummvm-rg350-b89bc000d96fce9d4e977b8ad59391282e35704e.zip
KEYMAPPER: Remap dialog shows buttons before labels
Diffstat (limited to 'backends/keymapper')
-rw-r--r--backends/keymapper/remap-dialog.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/backends/keymapper/remap-dialog.cpp b/backends/keymapper/remap-dialog.cpp
index 2039acf245..c0654fc0ea 100644
--- a/backends/keymapper/remap-dialog.cpp
+++ b/backends/keymapper/remap-dialog.cpp
@@ -170,7 +170,7 @@ void RemapDialog::reflowLayout() {
if (i >= _keymapWidgets.size()) {
widg.actionText =
- new GUI::StaticTextWidget(this, 0, 0, 0, 0, "", Graphics::kTextAlignRight);
+ new GUI::StaticTextWidget(this, 0, 0, 0, 0, "", Graphics::kTextAlignLeft);
widg.keyButton =
new GUI::ButtonWidget(this, 0, 0, 0, 0, "", 0, kRemapCmd + i);
widg.clearButton = addClearButton(this, "", kClearCmd + i, 0, 0, clearButtonWidth, clearButtonHeight);
@@ -182,9 +182,10 @@ void RemapDialog::reflowLayout() {
uint x = areaX;
uint y = areaY + (i) * (buttonHeight + spacing);
- widg.actionText->resize(x, y + textYOff, labelWidth, kLineHeight);
- widg.keyButton->resize(x + labelWidth, y, keyButtonWidth, buttonHeight);
- widg.clearButton->resize(x + labelWidth + keyButtonWidth + spacing, y + clearButtonYOff, clearButtonWidth, clearButtonHeight);
+ widg.keyButton->resize(x, y, keyButtonWidth, buttonHeight);
+ widg.clearButton->resize(x + keyButtonWidth + spacing, y + clearButtonYOff, clearButtonWidth, clearButtonHeight);
+ widg.actionText->resize(x + keyButtonWidth + spacing + clearButtonWidth + spacing, y + textYOff, labelWidth, kLineHeight);
+
}
while (oldSize > newSize) {
ActionWidgets widg = _keymapWidgets.remove_at(--oldSize);
@@ -391,7 +392,7 @@ void RemapDialog::refreshKeymap() {
debug(8, "RemapDialog::refreshKeymap actionI=%u", actionI);
ActionInfo& info = _currentActions[actionI];
- widg.actionText->setLabel(info.description + ": ");
+ widg.actionText->setLabel(info.description);
widg.actionText->setEnabled(!info.inherited);
const HardwareKey *mappedKey = info.action->getMappedKey();