QTfrontend/pageroomslist.cpp
changeset 6009 14f6fc9869f2
parent 5602 c89b81817ee4
child 6042 8b5345758f62
--- a/QTfrontend/pageroomslist.cpp	Sat Sep 24 04:53:53 2011 +0200
+++ b/QTfrontend/pageroomslist.cpp	Sat Sep 24 16:22:10 2011 +0200
@@ -53,9 +53,9 @@
     roomsList->setSelectionMode(QAbstractItemView::SingleSelection);
     pageLayout->addWidget(roomsList, 1, 0, 3, 2);
     pageLayout->setRowStretch(2, 100);
-    
+
     QHBoxLayout * filterLayout = new QHBoxLayout();
-    
+
     QLabel * stateLabel = new QLabel(this);
     stateLabel->setText(tr("State:"));
     CBState = new QComboBox(this);
@@ -65,7 +65,7 @@
     filterLayout->addWidget(stateLabel);
     filterLayout->addWidget(CBState);
     filterLayout->addSpacing(30);
-    
+
     QLabel * ruleLabel = new QLabel(this);
     ruleLabel->setText(tr("Rules:"));
     CBRules = new QComboBox(this);
@@ -77,7 +77,7 @@
     filterLayout->addWidget(ruleLabel);
     filterLayout->addWidget(CBRules);
     filterLayout->addSpacing(30);
-    
+
     QLabel * weaponLabel = new QLabel(this);
     weaponLabel->setText(tr("Weapons:"));
     CBWeapons = new QComboBox(this);
@@ -108,7 +108,10 @@
     BtnRefresh = addButton(tr("Refresh"), pageLayout, 3, 2);
     BtnClear = addButton(tr("Clear"), pageLayout, 4, 2);
 
+
     BtnBack = addButton(":/res/Exit.png", pageLayout, 6, 0, true);
+    connect(BtnBack, SIGNAL(clicked()), this, SIGNAL(goBack()));
+
 
     lblCount = new QLabel(this);
     pageLayout->addWidget(lblCount, 6, 1, Qt::AlignHCenter);
@@ -129,7 +132,7 @@
     connect(CBWeapons, SIGNAL(currentIndexChanged (int)), this, SLOT(onRefreshClick()));
     connect(searchText, SIGNAL(textChanged (const QString &)), this, SLOT(onRefreshClick()));
     connect(this, SIGNAL(askJoinConfirmation (const QString &)), this, SLOT(onJoinConfirmation(const QString &)), Qt::QueuedConnection);
-    
+
     gameInLobby = false;
 }