path to UTF8
configfile split
This commit is contained in:
@@ -21,11 +21,13 @@
|
||||
#include "session.h"
|
||||
#include "configfile.h"
|
||||
|
||||
createNetworkGameDialogImpl::createNetworkGameDialogImpl(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
createNetworkGameDialogImpl::createNetworkGameDialogImpl(QWidget *parent, std::string path)
|
||||
: QDialog(parent), myConfig(0)
|
||||
{
|
||||
|
||||
setupUi(this);
|
||||
myConfig = new ConfigFile(path);
|
||||
|
||||
setupUi(this);
|
||||
|
||||
fillFormular();
|
||||
|
||||
@@ -46,14 +48,13 @@ void createNetworkGameDialogImpl::cancel() {
|
||||
void createNetworkGameDialogImpl::fillFormular() {
|
||||
|
||||
//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"));
|
||||
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"));
|
||||
}
|
||||
|
||||
void createNetworkGameDialogImpl::showDialog() {
|
||||
|
||||
Reference in New Issue
Block a user