summaryrefslogtreecommitdiffstats
path: root/src/part/summaryWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/part/summaryWidget.cpp')
-rw-r--r--src/part/summaryWidget.cpp42
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";