This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user