Browse Source

Remove some deprecated kde2 stuff.

warning: ‘static int TDEAccel::stringToKey(const TQString&)’ is deprecated

Signed-off-by: gregory guy <gregory-tde@laposte.net>
pull/1/head
gregory guy 2 years ago
parent
commit
ac81a3c3e8
No known key found for this signature in database
GPG Key ID: 3BCCA0F7AB4536F4
  1. 8
      kpacman/referee.cpp
  2. 8
      kpacman/score.cpp

8
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)

8
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)

Loading…
Cancel
Save