server lobby: don't stretch buttons right of the roomlist - instead let the roomlist use all the available space
authorsheepluva
Tue, 18 Oct 2011 00:13:50 +0200
changeset 6146 c7c2dd71ced4
parent 6145 e658c6f698dd
child 6147 b4d7d8d62feb
server lobby: don't stretch buttons right of the roomlist - instead let the roomlist use all the available space
QTfrontend/ui/page/pageroomslist.cpp
--- a/QTfrontend/ui/page/pageroomslist.cpp	Tue Oct 18 00:01:26 2011 +0200
+++ b/QTfrontend/ui/page/pageroomslist.cpp	Tue Oct 18 00:13:50 2011 +0200
@@ -96,6 +96,11 @@
     BtnRefresh = addButton(tr("Refresh"), pageLayout, 3, 2);
     BtnClear = addButton(tr("Clear"), pageLayout, 4, 2);
 
+    // strech all but the buttons column
+    pageLayout->setColumnStretch(0, 1);
+    pageLayout->setColumnStretch(1, 1);
+    pageLayout->setColumnStretch(2, 0);
+
     CBRules->addItem(QComboBox::tr("Any"));
     CBState->addItem(QComboBox::tr("Any"));
     CBState->addItem(QComboBox::tr("In lobby"));