This commit is contained in:
doitux
2007-01-20 01:38:40 +00:00
parent ed989f2a64
commit 11fd7987d6
7 changed files with 229 additions and 97 deletions
+8 -2
View File
@@ -46,14 +46,17 @@ settingsDialogImpl::settingsDialogImpl(QWidget *parent, const char *name)
spinBox_smallBlind->setValue(config.readConfig("smallblind", "10").toInt(&ok,10));
spinBox_gameSpeed->setValue(config.readConfig("gamespeed", "4").toInt(&ok,10));
checkBox_showGameSettingsDialogOnNewGame->setChecked(config.readConfig("showgamesettingsdialogonnewgame", "1").toInt(&ok,10));
//Interface
checkBox_showToolbox->setChecked(config.readConfig("showtoolbox", "1").toInt(&ok,10));
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
connect( buttonBox, SIGNAL( accepted() ), this, SLOT( isAccepted() ) );
}
void settingsDialogImpl::accept() {
void settingsDialogImpl::isAccepted() {
//Daten speichern
ConfigFile config;
@@ -72,4 +75,7 @@ void settingsDialogImpl::accept() {
config.writeConfig("gamespeed", QString::number(spinBox_gameSpeed->value(),10));
config.writeConfig("showgamesettingsdialogonnewgame", QString::number(checkBox_showGameSettingsDialogOnNewGame->isChecked(),10));
//Interface
config.writeConfig("showtoolbox", QString::number(checkBox_showToolbox->isChecked(),10));
}