summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2020-09-02 14:06:34 +0200
committergregory guy <gregory-tde@laposte.net>2020-09-02 14:06:34 +0200
commitac81a3c3e8d1a61fc2ff39da89c7c2ea290d5e34 (patch)
treec473d4ae7be261e20cc100a5939cb03a11b40650
parentf8c20067ac98a79de7c4d0c118ceb37338263034 (diff)
downloadtdepacman-ac81a3c3e8d1a61fc2ff39da89c7c2ea290d5e34.tar.gz
tdepacman-ac81a3c3e8d1a61fc2ff39da89c7c2ea290d5e34.zip
Remove some deprecated kde2 stuff.
warning: ‘static int TDEAccel::stringToKey(const TQString&)’ is deprecated Signed-off-by: gregory guy <gregory-tde@laposte.net>
-rw-r--r--kpacman/referee.cpp8
-rw-r--r--kpacman/score.cpp8
2 files changed, 8 insertions, 8 deletions
diff --git a/kpacman/referee.cpp b/kpacman/referee.cpp
index af5c566..1f4e2bc 100644
--- a/kpacman/referee.cpp
+++ b/kpacman/referee.cpp
@@ -409,19 +409,19 @@ void Referee::initKeys()
{
TQString up("Up");
up = kapp->config()->readEntry("upKey", up);
- UpKey = TDEAccel::stringToKey(up);
+ UpKey = TDEShortcut(up);
TQString down("Down");
down = kapp->config()->readEntry("downKey", down);
- DownKey = TDEAccel::stringToKey(down);
+ DownKey = TDEShortcut(down);
TQString left("Left");
left = kapp->config()->readEntry("leftKey", left);
- LeftKey = TDEAccel::stringToKey(left);
+ LeftKey = TDEShortcut(left);
TQString right("Right");
right = kapp->config()->readEntry("rightKey", right);
- RightKey = TDEAccel::stringToKey(right);
+ RightKey = TDEShortcut(right);
}
void Referee::fillArray(TQMemArray<int> &array, TQString values, int max)
diff --git a/kpacman/score.cpp b/kpacman/score.cpp
index fa52583..c87bb96 100644
--- a/kpacman/score.cpp
+++ b/kpacman/score.cpp
@@ -251,19 +251,19 @@ void Score::initKeys()
{
TQString up("Up");
up = kapp->config()->readEntry("upKey", up);
- UpKey = TDEAccel::stringToKey(up);
+ UpKey = TDEShortcut(up);
TQString down("Down");
down = kapp->config()->readEntry("downKey", down);
- DownKey = TDEAccel::stringToKey(down);
+ DownKey = TDEShortcut(down);
TQString left("Left");
left = kapp->config()->readEntry("leftKey", left);
- LeftKey = TDEAccel::stringToKey(left);
+ LeftKey = TDEShortcut(left);
TQString right("Right");
right = kapp->config()->readEntry("rightKey", right);
- RightKey = TDEAccel::stringToKey(right);
+ RightKey = TDEShortcut(right);
}
void Score::confTiming(bool defGroup)