diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 6335dc55802871b5a43492f217b6edbb420204c4 (patch) | |
tree | 50c6c8672a52687568edea475614dfe3d98e62e5 /kfloppy | |
parent | 9b8c9f1f9e974ff0176108cfbd8852cd99ea68c8 (diff) | |
download | tdeutils-6335dc55802871b5a43492f217b6edbb420204c4.tar.gz tdeutils-6335dc55802871b5a43492f217b6edbb420204c4.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfloppy')
-rw-r--r-- | kfloppy/floppy.h | 2 | ||||
-rw-r--r-- | kfloppy/format.cpp | 26 |
2 files changed, 14 insertions, 14 deletions
diff --git a/kfloppy/floppy.h b/kfloppy/floppy.h index c95dbc6..393d919 100644 --- a/kfloppy/floppy.h +++ b/kfloppy/floppy.h @@ -65,7 +65,7 @@ public: void readSettings(); /// Map stored settings to widget status void setWidgets(); - /// A kind of TQString::tqfind() + /// A kind of TQString::find() int findKeyWord(TQString &, const TQString &); /// Enable/disable all UI elements void setEnabled(bool); diff --git a/kfloppy/format.cpp b/kfloppy/format.cpp index ea98530..26229f2 100644 --- a/kfloppy/format.cpp +++ b/kfloppy/format.cpp @@ -483,7 +483,7 @@ void FDFormat::processStdOut(KProcess *, char *b, int l) else { s = TQString::tqfromLatin1(b,l); - if (s.tqcontains("ioctl(FD_FORM)")) + if (s.contains("ioctl(FD_FORM)")) { emit status (i18n( "Cannot access floppy or floppy drive.\n" @@ -491,7 +491,7 @@ void FDFormat::processStdOut(KProcess *, char *b, int l) "have selected a valid floppy drive."),-1); return; } - if (s.tqfind("/dev/")>=0) + if (s.find("/dev/")>=0) { emit status(s,-1); return; @@ -502,7 +502,7 @@ void FDFormat::processStdOut(KProcess *, char *b, int l) s = TQString::tqfromLatin1(b,l); DEBUGS(s); TQRegExp regexp( "([0-9]+)" ); - if ( s.startsWith( "bad data at cyl" ) || ( s.tqfind( "Problem reading cylinder" ) != -1 ) ) + if ( s.startsWith( "bad data at cyl" ) || ( s.find( "Problem reading cylinder" ) != -1 ) ) { if ( regexp.search( s ) > -1 ) { @@ -516,7 +516,7 @@ void FDFormat::processStdOut(KProcess *, char *b, int l) } return; } - else if (s.tqfind("ioctl(FDFMTBEG)")!=-1) + else if (s.find("ioctl(FDFMTBEG)")!=-1) { emit status (i18n( "Cannot access floppy or floppy drive.\n" @@ -524,13 +524,13 @@ void FDFormat::processStdOut(KProcess *, char *b, int l) "have selected a valid floppy drive."),-1); return; } - else if (s.tqfind("busy")!=-1) // "Device or resource busy" + else if (s.find("busy")!=-1) // "Device or resource busy" { emit status(i18n("Device busy.\nPerhaps you need to unmount the floppy first."),-1); return; } // Be careful to leave "iotcl" as last before checking numbers - else if (s.tqfind("ioctl")!=-1) + else if (s.find("ioctl")!=-1) { emit status(i18n("Low-level format error: %1").tqarg(s),-1); return; @@ -722,18 +722,18 @@ void FATFilesystem::processStdOut(KProcess *, char *b, int l) #elif defined(ANY_LINUX) TQString s ( TQString::tqfromLatin1( b, l ) ); kdDebug(KFAREA) << s << endl; - if (s.tqfind("mounted file system")!=-1) // "/dev/fd0 contains a mounted file system + if (s.find("mounted file system")!=-1) // "/dev/fd0 contains a mounted file system { emit status(i18n("Floppy is mounted.\nYou need to unmount the floppy first."),-1); return; } - else if (s.tqfind("busy")!=-1) // "Device or resource busy" + else if (s.find("busy")!=-1) // "Device or resource busy" { emit status(i18n("Device busy.\nPerhaps you need to unmount the floppy first."),-1); return; } # if 0 - else if ( s.tqfind( "mkdosfs" ) != -1 ) // DEBUG: get the program header and show it! + else if ( s.find( "mkdosfs" ) != -1 ) // DEBUG: get the program header and show it! { emit status( s, -1 ); return; @@ -888,12 +888,12 @@ void Ext2Filesystem::processStdOut(KProcess *, char *b, int l) #elif defined(ANY_LINUX) TQString s ( TQString::tqfromLatin1( b, l ) ); kdDebug(KFAREA) << s << endl; - if (s.tqfind("mounted")!=-1) // "/dev/fd0 is mounted; will not make a filesystem here!" + if (s.find("mounted")!=-1) // "/dev/fd0 is mounted; will not make a filesystem here!" { emit status(i18n("Floppy is mounted.\nYou need to unmount the floppy first."),-1); return; } - else if (s.tqfind("busy")!=-1) // "Device or resource busy" + else if (s.find("busy")!=-1) // "Device or resource busy" { emit status(i18n("Device busy.\nPerhaps you need to unmount the floppy first."),-1); return; @@ -979,12 +979,12 @@ void MinixFilesystem::processStdOut(KProcess *, char *b, int l) { TQString s ( TQString::tqfromLatin1( b, l ) ); kdDebug(KFAREA) << s << endl; - if (s.tqfind("mounted")!=-1) // "mkfs.minix: /dev/fd0 is mounted; will not make a filesystem here!" + if (s.find("mounted")!=-1) // "mkfs.minix: /dev/fd0 is mounted; will not make a filesystem here!" { emit status(i18n("Floppy is mounted.\nYou need to unmount the floppy first."),-1); return; } - else if (s.tqfind("busy")!=-1) // "Device or resource busy" + else if (s.find("busy")!=-1) // "Device or resource busy" { emit status(i18n("Device busy.\nPerhaps you need to unmount the floppy first."),-1); return; |