diff --git a/client/views/view_units.cpp b/client/views/view_units.cpp
index 55f1a41989..5ea2fcc3cc 100644
--- a/client/views/view_units.cpp
+++ b/client/views/view_units.cpp
@@ -75,7 +75,7 @@ units_view::units_view() : QWidget()
ui.uwt_widget->setHorizontalHeaderLabels(slist);
ui.uwt_widget->setSortingEnabled(true);
ui.uwt_widget->setAlternatingRowColors(true);
- ui.uwt_label->setText("Units Waiting:");
+ ui.uwt_group->setTitle(_("Units Waiting:"));
// Add shield icon for shield upkeep column
const QPixmap *spr =
@@ -385,9 +385,9 @@ void units_view::update_waiting()
}
if (max_row == 0) {
- ui.uwt_label->setHidden(true);
- ui.uwt_widget->setHidden(true);
+ ui.uwt_group->setVisible(false);
} else {
+ ui.uwt_group->setVisible(true);
ui.uwt_widget->setRowCount(max_row);
ui.uwt_widget->resizeRowsToContents();
ui.uwt_widget->resizeColumnsToContents();
diff --git a/client/views/view_units.ui b/client/views/view_units.ui
index 257d26c953..39d804cb8b 100644
--- a/client/views/view_units.ui
+++ b/client/views/view_units.ui
@@ -18,34 +18,19 @@
30
20
- 681
- 521
+ 640
+ 369
-
- -
-
-
- QAbstractItemView::NoEditTriggers
-
-
- QAbstractItemView::SingleSelection
-
-
- QAbstractItemView::SelectRows
-
-
+
+
-
+
+
false
-
- true
+
+ PushButton
-
- false
-
-
- false
-
-
@@ -68,16 +53,6 @@
- -
-
-
- false
-
-
- PushButton
-
-
-
-
@@ -88,19 +63,6 @@
- -
-
-
- Qt::Vertical
-
-
-
- 20
- 40
-
-
-
-
-
@@ -114,7 +76,7 @@
- -
+
-
@@ -151,14 +113,38 @@
- -
-
-
- QFrame::StyledPanel
-
-
- TextLabel
-
+
-
+
+
+ GroupBox
+
+
+
-
+
+
+ QAbstractItemView::NoEditTriggers
+
+
+ QAbstractItemView::SingleSelection
+
+
+ QAbstractItemView::SelectRows
+
+
+ false
+
+
+ true
+
+
+ false
+
+
+ false
+
+
+
+