summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/fileselector/ofileselector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie2/opieui/fileselector/ofileselector.cpp b/libopie2/opieui/fileselector/ofileselector.cpp
index 1f6ca05..5528aed 100644
--- a/libopie2/opieui/fileselector/ofileselector.cpp
+++ b/libopie2/opieui/fileselector/ofileselector.cpp
@@ -534,61 +534,61 @@ void OFileViewFileListView::connectSlots()
534} 534}
535 535
536void OFileViewFileListView::slotCurrentChanged( QListViewItem* item) 536void OFileViewFileListView::slotCurrentChanged( QListViewItem* item)
537{ 537{
538 if (!item) 538 if (!item)
539 return; 539 return;
540#if 0 540#if 0
541 541
542 OFileSelectorItem *sel = static_cast<OFileSelectorItem*>(item); 542 OFileSelectorItem *sel = static_cast<OFileSelectorItem*>(item);
543 543
544 if (!sel->isDir() ) 544 if (!sel->isDir() )
545 { 545 {
546 selector()->m_lneEdit->setText( sel->text(1) ); 546 selector()->m_lneEdit->setText( sel->text(1) );
547 // if in fileselector mode we will emit selected 547 // if in fileselector mode we will emit selected
548 if ( selector()->mode() == OFileSelector::FileSelector ) 548 if ( selector()->mode() == OFileSelector::FileSelector )
549 { 549 {
550 owarn << "slot Current Changed" << oendl; 550 odebug << "slot Current Changed" << oendl;
551 QStringList str = QStringList::split("->", sel->text(1) ); 551 QStringList str = QStringList::split("->", sel->text(1) );
552 QString path = sel->directory() + "/" + str[0].stripWhiteSpace(); 552 QString path = sel->directory() + "/" + str[0].stripWhiteSpace();
553 emit selector()->fileSelected( path ); 553 emit selector()->fileSelected( path );
554 DocLnk lnk( path ); 554 DocLnk lnk( path );
555 emit selector()->fileSelected( lnk ); 555 emit selector()->fileSelected( lnk );
556 } 556 }
557 } 557 }
558#endif 558#endif
559} 559}
560 560
561void OFileViewFileListView::slotClicked(int button , QListViewItem* item, const QPoint&, int ) 561void OFileViewFileListView::slotClicked(int button , QListViewItem* item, const QPoint&, int )
562{ 562{
563 if (!item || ( button != Qt::LeftButton) ) 563 if (!item || ( button != Qt::LeftButton) )
564 return; 564 return;
565 565
566 OFileSelectorItem *sel = static_cast<OFileSelectorItem*>(item); 566 OFileSelectorItem *sel = static_cast<OFileSelectorItem*>(item);
567 if (!sel->isLocked() ) 567 if (!sel->isLocked() )
568 { 568 {
569 QStringList str = QStringList::split("->", sel->text(1) ); 569 QStringList str = QStringList::split("->", sel->text(1) );
570 if (sel->isDir() ) 570 if (sel->isDir() )
571 { 571 {
572 m_currentDir = sel->directory() + "/" + str[0].stripWhiteSpace(); 572 m_currentDir = sel->directory() + "/" + str[0].stripWhiteSpace();
573 emit selector()->dirSelected( m_currentDir ); 573 emit selector()->dirSelected( m_currentDir );
574 reread( m_all ); 574 reread( m_all );
575 } 575 }
576 else 576 else
577 { // file 577 { // file
578 owarn << "slot Clicked" << oendl; 578 odebug << "slot Clicked" << oendl;
579 selector()->m_lneEdit->setText( str[0].stripWhiteSpace() ); 579 selector()->m_lneEdit->setText( str[0].stripWhiteSpace() );
580 QString path = sel->directory() + "/" + str[0].stripWhiteSpace(); 580 QString path = sel->directory() + "/" + str[0].stripWhiteSpace();
581 emit selector()->fileSelected( path ); 581 emit selector()->fileSelected( path );
582 DocLnk lnk( path ); 582 DocLnk lnk( path );
583 emit selector()->fileSelected( lnk ); 583 emit selector()->fileSelected( lnk );
584 } 584 }
585 } // not locked 585 } // not locked
586} 586}
587 587
588void OFileViewFileListView::addFile( QFileInfo* info, bool symlink ) 588void OFileViewFileListView::addFile( QFileInfo* info, bool symlink )
589{ 589{
590 MimeType type( info->absFilePath() ); 590 MimeType type( info->absFilePath() );
591 if (!compliesMime( type.id() ) ) 591 if (!compliesMime( type.id() ) )
592 return; 592 return;
593 593
594 QPixmap pix = type.pixmap(); 594 QPixmap pix = type.pixmap();