This commit is contained in:
doitux
2007-02-25 23:14:48 +00:00
parent fdc6cd2d63
commit 06ed84cb7b
5 changed files with 163 additions and 119 deletions
@@ -19,7 +19,7 @@
***************************************************************************/
#include "createnetworkgamedialogimpl.h"
#include "session.h"
// #include "configfile.h"
#include "configfile.h"
createNetworkGameDialogImpl::createNetworkGameDialogImpl(QWidget *parent)
: QDialog(parent)
@@ -27,6 +27,17 @@ createNetworkGameDialogImpl::createNetworkGameDialogImpl(QWidget *parent)
setupUi(this);
//Formulare Füllen
ConfigFile myConfig;
//Network Game Settings
spinBox_quantityPlayers->setValue(myConfig.readConfigInt("NetNumberOfPlayers"));
spinBox_startCash->setValue(myConfig.readConfigInt("NetStartCash"));
spinBox_smallBlind->setValue(myConfig.readConfigInt("NetSmallBlind"));
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig.readConfigInt("NetHandsBeforeRaiseSmallBlind"));
spinBox_gameSpeed->setValue(myConfig.readConfigInt("NetGameSpeed"));
lineEdit_serverPassword->setText(QString::fromStdString(myConfig.readConfigString("ServerPassword")));
connect( pushButton_cancel, SIGNAL( clicked() ), this, SLOT( cancel() ) );
connect( pushButton_createGame, SIGNAL( clicked() ), this, SLOT( createGame() ) );