summaryrefslogtreecommitdiffstats
path: root/kfloppy/format.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:59:52 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:59:52 -0600
commit7ea89afa119615e547323a7a482ea7fef8e67029 (patch)
tree7b28540e70b4be9a779347f70486d4937258a875 /kfloppy/format.cpp
parentbcc684e28ad6f9ebeeae5d334a4dc297cef3e816 (diff)
downloadtdeutils-7ea89afa119615e547323a7a482ea7fef8e67029.tar.gz
tdeutils-7ea89afa119615e547323a7a482ea7fef8e67029.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'kfloppy/format.cpp')
-rw-r--r--kfloppy/format.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kfloppy/format.cpp b/kfloppy/format.cpp
index 9a972f4..35ed933 100644
--- a/kfloppy/format.cpp
+++ b/kfloppy/format.cpp
@@ -266,7 +266,7 @@ bool FloppyAction::configureDevice(int drive,int density)
if ((drive<0) || (drive>1))
{
- emit status(i18n("Unexpected drive number %1.").tqarg(drive),-1);
+ emit status(i18n("Unexpected drive number %1.").arg(drive),-1);
return false;
}
@@ -278,7 +278,7 @@ bool FloppyAction::configureDevice(int drive,int density)
}
if (!deviceinfo)
{
- emit status(i18n("Unexpected density number %1.").tqarg(density),-1);
+ emit status(i18n("Unexpected density number %1.").arg(density),-1);
return false;
}
@@ -294,7 +294,7 @@ bool FloppyAction::configureDevice(int drive,int density)
if (!deviceinfo || !deviceinfo->devices)
{
emit status(i18n("Cannot find a device for drive %1 and density %2.")
- .tqarg(drive).tqarg(density),-1);
+ .arg(drive).arg(density),-1);
return false;
}
@@ -313,7 +313,7 @@ bool FloppyAction::configureDevice(int drive,int density)
{
const TQString str = i18n(
"Cannot access %1\nMake sure that the device exists and that "
- "you have write permission to it.").tqarg(deviceinfo->devices[0]);
+ "you have write permission to it.").arg(deviceinfo->devices[0]);
emit status(str,-1);
return false;
}
@@ -343,13 +343,13 @@ void FloppyAction::processDone(KProcess *p)
}
else
{
- emit status(i18n("The program %1 terminated with an error.").tqarg(theProcessName),100);
+ emit status(i18n("The program %1 terminated with an error.").arg(theProcessName),100);
emit done(this,false);
}
}
else
{
- emit status(i18n("The program %1 terminated abnormally.").tqarg(theProcessName),100);
+ emit status(i18n("The program %1 terminated abnormally.").arg(theProcessName),100);
emit done(this,false);
}
}
@@ -478,7 +478,7 @@ void FDFormat::processStdOut(KProcess *, char *b, int l)
}
else if (b[0]=='E')
{
- emit status(i18n("Error formatting track %1.").tqarg(formatTrackCount),-1);
+ emit status(i18n("Error formatting track %1.").arg(formatTrackCount),-1);
}
else
{
@@ -507,12 +507,12 @@ void FDFormat::processStdOut(KProcess *, char *b, int l)
if ( regexp.search( s ) > -1 )
{
const int track = regexp.cap(1).toInt();
- emit status(i18n("Low-level formatting error at track %1.").tqarg(track), -1);
+ emit status(i18n("Low-level formatting error at track %1.").arg(track), -1);
}
else
{
// This error should not happen
- emit status(i18n("Low-level formatting error: %1").tqarg(s), -1);
+ emit status(i18n("Low-level formatting error: %1").arg(s), -1);
}
return;
}
@@ -532,7 +532,7 @@ void FDFormat::processStdOut(KProcess *, char *b, int l)
// Be careful to leave "iotcl" as last before checking numbers
else if (s.find("ioctl")!=-1)
{
- emit status(i18n("Low-level format error: %1").tqarg(s),-1);
+ emit status(i18n("Low-level format error: %1").arg(s),-1);
return;
}
// Check for numbers at last (as /dev/fd0u1440 has numbers too)
@@ -792,7 +792,7 @@ void UFSFilesystem::exec()
// ### TODO: is it still needed? (FreeBSD 5.3's man page says: "For backward compatibility.")
if ( deviceInfo )
- *p << "-T" << TQString("fd%1").tqarg(deviceInfo->blocks);
+ *p << "-T" << TQString("fd%1").arg(deviceInfo->blocks);
*p << deviceName;