author | llornkcor <llornkcor> | 2002-04-19 23:58:35 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-19 23:58:35 (UTC) |
commit | 10c881d21c166bd7d06e96187cabf6cfe44ccdb3 (patch) (unidiff) | |
tree | b27032c8cf19943bdfe2f0def53fab961eeaf62d /noncore/apps | |
parent | 221f2cbeaec8f28d39a5f95655f109a4b0fd33fc (diff) | |
download | opie-10c881d21c166bd7d06e96187cabf6cfe44ccdb3.zip opie-10c881d21c166bd7d06e96187cabf6cfe44ccdb3.tar.gz opie-10c881d21c166bd7d06e96187cabf6cfe44ccdb3.tar.bz2 |
frak! fixed symlink icon new location
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 2126745..fed15b4 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -410,49 +410,49 @@ void AdvancedFm::populateRemoteView() | |||
410 | if(fileL !="./" && fi->exists()) { | 410 | if(fileL !="./" && fi->exists()) { |
411 | item= new QListViewItem( Remote_View, fileL, fileDate, fileS); | 411 | item= new QListViewItem( Remote_View, fileL, fileDate, fileS); |
412 | QPixmap pm; | 412 | QPixmap pm; |
413 | 413 | ||
414 | if(isDir || fileL.find("/",0,TRUE) != -1) { | 414 | if(isDir || fileL.find("/",0,TRUE) != -1) { |
415 | if( !QDir( fi->filePath() ).isReadable()) | 415 | if( !QDir( fi->filePath() ).isReadable()) |
416 | pm = Resource::loadPixmap( "lockedfolder" ); | 416 | pm = Resource::loadPixmap( "lockedfolder" ); |
417 | else | 417 | else |
418 | pm= Resource::loadPixmap( "folder" ); | 418 | pm= Resource::loadPixmap( "folder" ); |
419 | item->setPixmap( 0,pm ); | 419 | item->setPixmap( 0,pm ); |
420 | } else { | 420 | } else { |
421 | if( !fi->isReadable() ) | 421 | if( !fi->isReadable() ) |
422 | pm = Resource::loadPixmap( "locked" ); | 422 | pm = Resource::loadPixmap( "locked" ); |
423 | else { | 423 | else { |
424 | MimeType mt(fi->filePath()); | 424 | MimeType mt(fi->filePath()); |
425 | pm=mt.pixmap(); //sets the correct pixmap for mimetype | 425 | pm=mt.pixmap(); //sets the correct pixmap for mimetype |
426 | if(pm.isNull()) | 426 | if(pm.isNull()) |
427 | pm = Resource::loadPixmap( "UnknownDocument-14" ); | 427 | pm = Resource::loadPixmap( "UnknownDocument-14" ); |
428 | item->setPixmap( 0,pm); | 428 | item->setPixmap( 0,pm); |
429 | } | 429 | } |
430 | } | 430 | } |
431 | if( fileL.find("->",0,TRUE) != -1) { | 431 | if( fileL.find("->",0,TRUE) != -1) { |
432 | // overlay link image | 432 | // overlay link image |
433 | pm= Resource::loadPixmap( "folder" ); | 433 | pm= Resource::loadPixmap( "folder" ); |
434 | QPixmap lnk = Resource::loadPixmap( "symlink" ); | 434 | QPixmap lnk = Resource::loadPixmap( "opie/symlink" ); |
435 | QPainter painter( &pm ); | 435 | QPainter painter( &pm ); |
436 | painter.drawPixmap( pm.width()-lnk.width(), pm.height()-lnk.height(), lnk ); | 436 | painter.drawPixmap( pm.width()-lnk.width(), pm.height()-lnk.height(), lnk ); |
437 | pm.setMask( pm.createHeuristicMask( FALSE ) ); | 437 | pm.setMask( pm.createHeuristicMask( FALSE ) ); |
438 | item->setPixmap( 0, pm); | 438 | item->setPixmap( 0, pm); |
439 | } | 439 | } |
440 | } isDir=FALSE; | 440 | } isDir=FALSE; |
441 | ++it; | 441 | ++it; |
442 | } | 442 | } |
443 | 443 | ||
444 | if(currentRemoteDir.canonicalPath().find("dev",0,TRUE) != -1) { | 444 | if(currentRemoteDir.canonicalPath().find("dev",0,TRUE) != -1) { |
445 | struct stat buf; | 445 | struct stat buf; |
446 | struct stat st; | 446 | struct stat st; |
447 | mode_t mode; | 447 | mode_t mode; |
448 | DIR *dir; | 448 | DIR *dir; |
449 | int fd = 0; | 449 | int fd = 0; |
450 | struct dirent *mydirent; | 450 | struct dirent *mydirent; |
451 | int i = 1; | 451 | int i = 1; |
452 | if((dir = opendir( currentRemoteDir.canonicalPath().latin1())) != NULL) | 452 | if((dir = opendir( currentRemoteDir.canonicalPath().latin1())) != NULL) |
453 | while ((mydirent = readdir(dir)) != NULL) { | 453 | while ((mydirent = readdir(dir)) != NULL) { |
454 | lstat( mydirent->d_name, &buf); | 454 | lstat( mydirent->d_name, &buf); |
455 | qDebug(mydirent->d_name); | 455 | qDebug(mydirent->d_name); |
456 | // mode = buf.st_mode; | 456 | // mode = buf.st_mode; |
457 | fileL.sprintf("%s", mydirent->d_name); | 457 | fileL.sprintf("%s", mydirent->d_name); |
458 | // fileS.sprintf("%d, %d", ); //this isn't correct | 458 | // fileS.sprintf("%d, %d", ); //this isn't correct |