Back to rev. 347
This commit is contained in:
@@ -20,22 +20,22 @@
|
||||
#include "newgamedialogimpl.h"
|
||||
#include "configfile.h"
|
||||
|
||||
newGameDialogImpl::newGameDialogImpl(QWidget *parent, std::string path)
|
||||
newGameDialogImpl::newGameDialogImpl(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
{
|
||||
|
||||
setupUi(this);
|
||||
|
||||
//Formulare Füllen
|
||||
myConfig = new ConfigFile(path);
|
||||
ConfigFile myConfig;
|
||||
|
||||
//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"));
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -23,22 +23,17 @@
|
||||
#include "ui_newgamedialog.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <QtGui>
|
||||
#include <QtCore>
|
||||
|
||||
class ConfigFile;
|
||||
|
||||
class newGameDialogImpl: public QDialog, public Ui::newGameDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
newGameDialogImpl(QWidget *parent = 0, std::string = "");
|
||||
newGameDialogImpl(QWidget *parent = 0);
|
||||
|
||||
public slots:
|
||||
|
||||
|
||||
private:
|
||||
ConfigFile *myConfig;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user