- Save after save now works
authorunc0rr
Sun, 16 Dec 2007 15:58:29 +0000
changeset 673 bd82104a28af
parent 672 08ed55ea1e2a
child 674 a15c8e3c69b3
- Save after save now works - Stretching first column in net servers list
QTfrontend/game.cpp
QTfrontend/pages.cpp
--- a/QTfrontend/game.cpp	Sat Dec 15 23:24:43 2007 +0000
+++ b/QTfrontend/game.cpp	Sun Dec 16 15:58:29 2007 +0000
@@ -49,8 +49,6 @@
 void HWGame::onClientDisconnect()
 {
 	switch (gameType) {
-		case gtDemo:
-			break;
 		case gtNet:
 			emit HaveRecord(true, demo);
 			break;
--- a/QTfrontend/pages.cpp	Sat Dec 15 23:24:43 2007 +0000
+++ b/QTfrontend/pages.cpp	Sun Dec 16 15:58:29 2007 +0000
@@ -31,6 +31,7 @@
 #include <QRadioButton>
 #include <QTableView>
 #include <QMessageBox>
+#include <QHeaderView>
 
 #include "pages.h"
 #include "sdlkeys.h"
@@ -80,7 +81,7 @@
 	BtnLoad = new QPushButton(this);
 	BtnLoad->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
 	BtnLoad->setFont(*font14);
-	BtnLoad->setText(QPushButton::tr("Load"));
+	BtnLoad->setText(QPushButton::tr("Saved games"));
 	pageLayout->addWidget(BtnLoad, 3, 1);
 
 	BtnDemos = new QPushButton(this);
@@ -493,6 +494,8 @@
 	else
 		tvServersList->setModel(new HWNetWwwModel(tvServersList));
 
+	tvServersList->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
+
 	static_cast<HWNetServersModel *>(tvServersList->model())->updateList();
 
 	connect(BtnUpdateSList, SIGNAL(clicked()), static_cast<HWNetServersModel *>(tvServersList->model()), SLOT(updateList()));