|
Lines 1428-1433
Link Here
|
| 1428 |
m_systemView->insertItem( "folder_man", i18n( "My Documents" ), documentPath, documentPath, nId++, index++ ); |
1428 |
m_systemView->insertItem( "folder_man", i18n( "My Documents" ), documentPath, documentPath, nId++, index++ ); |
| 1429 |
} |
1429 |
} |
| 1430 |
|
1430 |
|
|
|
1431 |
if ( KStandardDirs::exists( KGlobalSettings::picturesPath() + "/" ) ) |
| 1432 |
{ |
| 1433 |
TQString picturesPath = KGlobalSettings::picturesPath(); |
| 1434 |
if ( picturesPath.endsWith( "/" ) ) |
| 1435 |
picturesPath = picturesPath.left( picturesPath.length() - 1 ); |
| 1436 |
if (picturesPath!=TQDir::homeDirPath()) |
| 1437 |
m_systemView->insertItem( "folder_image", i18n( "My Images" ), picturesPath, picturesPath, nId++, index++ ); |
| 1438 |
} |
| 1439 |
|
| 1440 |
if ( KStandardDirs::exists( KGlobalSettings::musicPath() + "/" ) ) |
| 1441 |
{ |
| 1442 |
TQString musicPath = KGlobalSettings::musicPath(); |
| 1443 |
if ( musicPath.endsWith( "/" ) ) |
| 1444 |
musicPath = musicPath.left( musicPath.length() - 1 ); |
| 1445 |
if (musicPath!=TQDir::homeDirPath()) |
| 1446 |
m_systemView->insertItem( "folder_sound", i18n( "My Music" ), musicPath, musicPath, nId++, index++ ); |
| 1447 |
} |
| 1448 |
|
| 1449 |
if ( KStandardDirs::exists( KGlobalSettings::videosPath() + "/" ) ) |
| 1450 |
{ |
| 1451 |
TQString videosPath = KGlobalSettings::videosPath(); |
| 1452 |
if ( videosPath.endsWith( "/" ) ) |
| 1453 |
videosPath = videosPath.left( videosPath.length() - 1 ); |
| 1454 |
if (videosPath!=TQDir::homeDirPath()) |
| 1455 |
m_systemView->insertItem( "folder_video", i18n( "My Videos" ), videosPath, videosPath, nId++, index++ ); |
| 1456 |
} |
| 1457 |
|
| 1458 |
if ( KStandardDirs::exists( KGlobalSettings::downloadPath() + "/" ) ) |
| 1459 |
{ |
| 1460 |
TQString downloadPath = KGlobalSettings::downloadPath(); |
| 1461 |
if ( downloadPath.endsWith( "/" ) ) |
| 1462 |
downloadPath = downloadPath.left( downloadPath.length() - 1 ); |
| 1463 |
if (downloadPath!=TQDir::homeDirPath()) |
| 1464 |
m_systemView->insertItem( "folder_inbox", i18n( "My Downloads" ), downloadPath, downloadPath, nId++, index++ ); |
| 1465 |
} |
| 1466 |
|
| 1431 |
m_systemView->insertItem( "network", i18n( "Network Folders" ), |
1467 |
m_systemView->insertItem( "network", i18n( "Network Folders" ), |
| 1432 |
"remote:/", "remote:/", nId++, index++ ); |
1468 |
"remote:/", "remote:/", nId++, index++ ); |
| 1433 |
|
1469 |
|