This commit is contained in:
doitux
2007-01-17 23:57:41 +00:00
parent 95859c85de
commit 37c8ed55d5
6 changed files with 392 additions and 345 deletions
+13
View File
@@ -18,6 +18,7 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "newgamedialogimpl.h"
#include "configfile.h"
newGameDialogImpl::newGameDialogImpl(QWidget *parent, const char *name)
: QDialog(parent, name)
@@ -25,5 +26,17 @@ newGameDialogImpl::newGameDialogImpl(QWidget *parent, const char *name)
setupUi(this);
//Formulare Füllen
ConfigFile config;
bool ok=TRUE;
//Game Settings
spinBox_quantityPlayers->setValue(config.readConfig("numberofplayers", "5").toInt(&ok,10));
spinBox_startCash->setValue(config.readConfig("startcash", "2000").toInt(&ok,10));
spinBox_smallBlind->setValue(config.readConfig("smallblind", "10").toInt(&ok,10));
spinBox_gameSpeed->setValue(config.readConfig("gamespeed", "4").toInt(&ok,10));
}