author | mickeyl <mickeyl> | 2004-07-18 15:07:08 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-07-18 15:07:08 (UTC) |
commit | 63c1d7b2cb5abfcfa518363caf9e9c24dbb906dc (patch) (unidiff) | |
tree | ed9c37e249a132229f5f90500478189c0fa69d1e /libopie2/opieui | |
parent | 35625ac739a9e070ceff4714328a91bb00b1f8a9 (diff) | |
download | opie-63c1d7b2cb5abfcfa518363caf9e9c24dbb906dc.zip opie-63c1d7b2cb5abfcfa518363caf9e9c24dbb906dc.tar.gz opie-63c1d7b2cb5abfcfa518363caf9e9c24dbb906dc.tar.bz2 |
no need to warn here. debug seems enough
-rw-r--r-- | libopie2/opieui/fileselector/ofileselector.cpp | 4 |
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 | |||
@@ -538,25 +538,25 @@ void OFileViewFileListView::slotCurrentChanged( QListViewItem* item) | |||
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 | ||
561 | void OFileViewFileListView::slotClicked(int button , QListViewItem* item, const QPoint&, int ) | 561 | void OFileViewFileListView::slotClicked(int button , QListViewItem* item, const QPoint&, int ) |
562 | { | 562 | { |
@@ -566,25 +566,25 @@ void OFileViewFileListView::slotClicked(int button , QListViewItem* item, const | |||
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 | ||
588 | void OFileViewFileListView::addFile( QFileInfo* info, bool symlink ) | 588 | void OFileViewFileListView::addFile( QFileInfo* info, bool symlink ) |
589 | { | 589 | { |
590 | MimeType type( info->absFilePath() ); | 590 | MimeType type( info->absFilePath() ); |