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 | 649f3d48bf88497f3e3214fed6401628bded8bfc (patch) | |
tree | 0d5c164d0e33f646e4806bdae989c5603d2ad7a8 /src/part/summaryWidget.cpp | |
parent | 1f0e7cefe5c3898d269460c03b24d58921d48102 (diff) | |
download | filelight-649f3d48bf88497f3e3214fed6401628bded8bfc.tar.gz filelight-649f3d48bf88497f3e3214fed6401628bded8bfc.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/filelight@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/part/summaryWidget.cpp')
-rw-r--r-- | src/part/summaryWidget.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/part/summaryWidget.cpp b/src/part/summaryWidget.cpp index afa047e..d583d4d 100644 --- a/src/part/summaryWidget.cpp +++ b/src/part/summaryWidget.cpp @@ -173,7 +173,7 @@ DiskList::DiskList() if (s.isEmpty()) continue; - if (s.tqfind( BLANK ) < 0) // devicename was too long, rest in next line + if (s.find( BLANK ) < 0) // devicename was too long, rest in next line if (!t.eof()) { // just appends the next line TQString v = t.readLine(); s = s.append( v.latin1() ); @@ -181,27 +181,27 @@ DiskList::DiskList() } Disk disk; - disk.device = s.left( s.tqfind( BLANK ) ); - s = s.remove( 0, s.tqfind( BLANK ) + 1 ); + disk.device = s.left( s.find( BLANK ) ); + s = s.remove( 0, s.find( BLANK ) + 1 ); #ifndef NO_FS_TYPE - disk.type = s.left( s.tqfind( BLANK ) ); - s = s.remove( 0, s.tqfind( BLANK ) + 1 ); + disk.type = s.left( s.find( BLANK ) ); + s = s.remove( 0, s.find( BLANK ) + 1 ); #endif - int n = s.tqfind( BLANK ); + int n = s.find( BLANK ); disk.size = s.left( n ).toInt(); s = s.remove( 0, n + 1 ); - n = s.tqfind( BLANK ); + n = s.find( BLANK ); disk.used = s.left( n ).toInt(); s = s.remove( 0, n + 1 ); - n = s.tqfind( BLANK ); + n = s.find( BLANK ); disk.free = s.left( n ).toInt(); s = s.remove( 0, n + 1 ); - s = s.remove( 0, s.tqfind( BLANK ) + 1 ); // delete the capacity 94% + s = s.remove( 0, s.find( BLANK ) + 1 ); // delete the capacity 94% disk.mount = s; disk.guessIconName(); @@ -214,21 +214,21 @@ DiskList::DiskList() void Disk::guessIconName() { - if( mount.tqcontains( "cdrom", false ) ) icon = "cdrom"; - else if( device.tqcontains( "cdrom", false ) ) icon = "cdrom"; - else if( mount.tqcontains( "writer", false ) ) icon = "cdwriter"; - else if( device.tqcontains( "writer", false ) ) icon = "cdwriter"; - else if( mount.tqcontains( "mo", false ) ) icon = "mo"; - else if( device.tqcontains( "mo", false ) ) icon = "mo"; - else if( device.tqcontains( "fd", false ) ) { - if( device.tqcontains( "360", false ) ) icon = "5floppy"; - if( device.tqcontains( "1200", false ) ) icon = "5floppy"; + if( mount.contains( "cdrom", false ) ) icon = "cdrom"; + else if( device.contains( "cdrom", false ) ) icon = "cdrom"; + else if( mount.contains( "writer", false ) ) icon = "cdwriter"; + else if( device.contains( "writer", false ) ) icon = "cdwriter"; + else if( mount.contains( "mo", false ) ) icon = "mo"; + else if( device.contains( "mo", false ) ) icon = "mo"; + else if( device.contains( "fd", false ) ) { + if( device.contains( "360", false ) ) icon = "5floppy"; + if( device.contains( "1200", false ) ) icon = "5floppy"; else icon = "3floppy"; } - else if( mount.tqcontains( "floppy", false ) ) icon = "3floppy"; - else if( mount.tqcontains( "zip", false ) ) icon = "zip"; - else if( type.tqcontains( "nfs", false ) ) icon = "nfs"; + else if( mount.contains( "floppy", false ) ) icon = "3floppy"; + else if( mount.contains( "zip", false ) ) icon = "zip"; + else if( type.contains( "nfs", false ) ) icon = "nfs"; else icon = "hdd"; |