From c1c37ed662d3a462405be77ba0b173d4455b18f7 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 8 Apr 2021 15:43:11 +0300 Subject: [PATCH 26/27] Ruledit: Consistently place "Edit Values" button in different tabs Also name it "Edit Values" also in tab_unit. It's now always placed after the ruleset item name fields, before any of requirement or effect buttons. See osdn #41944 Signed-off-by: Marko Lindqvist --- tools/ruledit/tab_building.cpp | 10 +++++----- tools/ruledit/tab_unit.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/ruledit/tab_building.cpp b/tools/ruledit/tab_building.cpp index 678b7b34f2..5489a88540 100644 --- a/tools/ruledit/tab_building.cpp +++ b/tools/ruledit/tab_building.cpp @@ -82,13 +82,13 @@ tab_building::tab_building(ruledit_gui *ui_in) : QWidget() bldg_layout->addWidget(same_name, 1, 1); bldg_layout->addWidget(name, 1, 2); - reqs_button = new QPushButton(QString::fromUtf8(R__("Requirements")), this); - connect(reqs_button, SIGNAL(pressed()), this, SLOT(edit_reqs())); - bldg_layout->addWidget(reqs_button, 2, 2); - edit_button = new QPushButton(QString::fromUtf8(R__("Edit Values")), this); connect(edit_button, SIGNAL(pressed()), this, SLOT(edit_now())); - bldg_layout->addWidget(edit_button, 3, 2); + bldg_layout->addWidget(edit_button, 2, 2); + + reqs_button = new QPushButton(QString::fromUtf8(R__("Requirements")), this); + connect(reqs_button, SIGNAL(pressed()), this, SLOT(edit_reqs())); + bldg_layout->addWidget(reqs_button, 3, 2); add_button = new QPushButton(QString::fromUtf8(R__("Add Building")), this); connect(add_button, SIGNAL(pressed()), this, SLOT(add_now2())); diff --git a/tools/ruledit/tab_unit.cpp b/tools/ruledit/tab_unit.cpp index d53c782404..e348efd241 100644 --- a/tools/ruledit/tab_unit.cpp +++ b/tools/ruledit/tab_unit.cpp @@ -81,7 +81,7 @@ tab_unit::tab_unit(ruledit_gui *ui_in) : QWidget() unit_layout->addWidget(same_name, 1, 1); unit_layout->addWidget(name, 1, 2); - edit_button = new QPushButton(QString::fromUtf8(R__("Edit Unit")), this); + edit_button = new QPushButton(QString::fromUtf8(R__("Edit Values")), this); connect(edit_button, SIGNAL(pressed()), this, SLOT(edit_now())); unit_layout->addWidget(edit_button, 2, 2); -- 2.30.2