Commit 807ce884 authored by Dmitry Suzdalev's avatar Dmitry Suzdalev

lskat: deprecated--

ksokoban: paint in paintEvent only (not all cases fixed yet)

svn path=/trunk/KDE/kdegames/lskat/; revision=549610
parent 61293259
......@@ -88,9 +88,9 @@ void ConfigTwo::load(KConfig* cfg)
reset();
cfg->setGroup("LSkatData");
int num;
num = cfg->readNumEntry("input0", (int)mInputTypes[0]);
num = cfg->readEntry("input0", (int)mInputTypes[0]);
setInputType(0, (InputDeviceType)num);
num = cfg->readNumEntry("input1", (int)mInputTypes[1]);
num = cfg->readEntry("input1", (int)mInputTypes[1]);
setInputType(1, (InputDeviceType)num);
// Load player
......
......@@ -68,9 +68,9 @@ void Player::save(KConfig *cfg)
void Player::load(KConfig* cfg)
{
mName = cfg->readEntry("name", mName);
mGamesWon = cfg->readNumEntry("gameswon", mGamesWon);
mScore = cfg->readNumEntry("score", mScore);
mNumberOfGames = cfg->readNumEntry("noofgames", mNumberOfGames);
mGamesWon = cfg->readEntry("gameswon", mGamesWon);
mScore = cfg->readEntry("score", mScore);
mNumberOfGames = cfg->readEntry("noofgames", mNumberOfGames);
// Emit signals
refresh();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment