path to UTF8
configfile split
This commit is contained in:
@@ -20,22 +20,22 @@
|
||||
#include "newgamedialogimpl.h"
|
||||
#include "configfile.h"
|
||||
|
||||
newGameDialogImpl::newGameDialogImpl(QWidget *parent)
|
||||
newGameDialogImpl::newGameDialogImpl(QWidget *parent, std::string path)
|
||||
: QDialog(parent)
|
||||
{
|
||||
|
||||
setupUi(this);
|
||||
|
||||
//Formulare Füllen
|
||||
ConfigFile myConfig;
|
||||
myConfig = new ConfigFile(path);
|
||||
|
||||
//Game Settings
|
||||
|
||||
spinBox_quantityPlayers->setValue(myConfig.readConfigInt("NumberOfPlayers"));
|
||||
spinBox_startCash->setValue(myConfig.readConfigInt("StartCash"));
|
||||
spinBox_smallBlind->setValue(myConfig.readConfigInt("SmallBlind"));
|
||||
spinBox_gameSpeed->setValue(myConfig.readConfigInt("GameSpeed"));
|
||||
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig.readConfigInt("HandsBeforeRaiseSmallBlind"));
|
||||
spinBox_quantityPlayers->setValue(myConfig->readConfigInt("NumberOfPlayers"));
|
||||
spinBox_startCash->setValue(myConfig->readConfigInt("StartCash"));
|
||||
spinBox_smallBlind->setValue(myConfig->readConfigInt("SmallBlind"));
|
||||
spinBox_gameSpeed->setValue(myConfig->readConfigInt("GameSpeed"));
|
||||
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig->readConfigInt("HandsBeforeRaiseSmallBlind"));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user