summaryrefslogtreecommitdiffstats
path: root/kpacman/keys.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpacman/keys.cpp')
-rw-r--r--kpacman/keys.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kpacman/keys.cpp b/kpacman/keys.cpp
index d26c263..df8f980 100644
--- a/kpacman/keys.cpp
+++ b/kpacman/keys.cpp
@@ -162,28 +162,28 @@ void PKeys::defaults()
void PKeys::init()
{
TQString up("Up");
- up = kapp->config()->readEntry("upKey", (const char*) up);
+ up = kapp->config()->readEntry("upKey", up);
labels[0]->setText(up);
TQString down("Down");
- down = kapp->config()->readEntry("downKey", (const char*) down);
+ down = kapp->config()->readEntry("downKey", down);
labels[1]->setText(down);
TQString left("Left");
- left = kapp->config()->readEntry("leftKey", (const char*) left);
+ left = kapp->config()->readEntry("leftKey", left);
labels[2]->setText(left);
TQString right("Right");
- right = kapp->config()->readEntry("rightKey", (const char*) right);
+ right = kapp->config()->readEntry("rightKey", right);
labels[3]->setText(right);
}
void PKeys::ok()
{
- kapp->config()->writeEntry("upKey", (const char*) labels[0]->text() );
- kapp->config()->writeEntry("downKey", (const char*) labels[1]->text() );
- kapp->config()->writeEntry("leftKey", (const char*) labels[2]->text() );
- kapp->config()->writeEntry("rightKey",(const char*) labels[3]->text() );
+ kapp->config()->writeEntry("upKey", labels[0]->text() );
+ kapp->config()->writeEntry("downKey", labels[1]->text() );
+ kapp->config()->writeEntry("leftKey", labels[2]->text() );
+ kapp->config()->writeEntry("rightKey", labels[3]->text() );
kapp->config()->sync();
accept();