summaryrefslogtreecommitdiffstats
path: root/noatun/modules/infrared/irprefs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/modules/infrared/irprefs.cpp')
-rw-r--r--noatun/modules/infrared/irprefs.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/noatun/modules/infrared/irprefs.cpp b/noatun/modules/infrared/irprefs.cpp
index c83326ad..98150f40 100644
--- a/noatun/modules/infrared/irprefs.cpp
+++ b/noatun/modules/infrared/irprefs.cpp
@@ -109,9 +109,9 @@ void IRPrefs::save()
int i = 1;
for (TQMap<TQString, Command>::ConstIterator it = s_commands.begin(); it != s_commands.end(); ++it)
{
- c->writePathEntry(TQString("Command_%1").tqarg(i), it.key());
- c->writeEntry(TQString("Action_%1").tqarg(i), (int)((*it).action));
- c->writeEntry(TQString("Interval_%1").tqarg(i), (*it).interval);
+ c->writePathEntry(TQString("Command_%1").arg(i), it.key());
+ c->writeEntry(TQString("Action_%1").arg(i), (int)((*it).action));
+ c->writeEntry(TQString("Interval_%1").arg(i), (*it).interval);
++i;
}
}
@@ -288,9 +288,9 @@ void IRPrefs::readConfig()
for (int i = 1; i <= count; ++i)
{
Command cmd;
- cmd.action = (Action)(c->readNumEntry(TQString("Action_%1").tqarg(i)));
- cmd.interval = c->readNumEntry(TQString("Interval_%1").tqarg(i));
- s_commands.insert(c->readPathEntry(TQString("Command_%1").tqarg(i)), cmd);
+ cmd.action = (Action)(c->readNumEntry(TQString("Action_%1").arg(i)));
+ cmd.interval = c->readNumEntry(TQString("Interval_%1").arg(i));
+ s_commands.insert(c->readPathEntry(TQString("Command_%1").arg(i)), cmd);
}
s_configRead = true;
}