-rw-r--r-- | noncore/graphics/opie-eye/gui/iconview.cpp | 19 | ||||
-rw-r--r-- | noncore/graphics/opie-eye/gui/iconview.h | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/noncore/graphics/opie-eye/gui/iconview.cpp b/noncore/graphics/opie-eye/gui/iconview.cpp index 211314b..652acc9 100644 --- a/noncore/graphics/opie-eye/gui/iconview.cpp +++ b/noncore/graphics/opie-eye/gui/iconview.cpp | |||
@@ -437,8 +437,11 @@ void PIconView::addFiles( const QStringList& lst) { | |||
437 | _iv = new IconViewItem( m_view, pre+(*it), (*it) ); | 437 | _iv = new IconViewItem( m_view, pre+(*it), (*it) ); |
438 | if (m_mode==3) { | 438 | if (m_mode==3) { |
439 | _iv->setTextOnly(true); | 439 | _iv->setTextOnly(true); |
440 | _iv->setPixmap(QPixmap()); | 440 | _iv->setPixmap(QPixmap()); |
441 | |||
442 | |||
443 | |||
441 | } else { | 444 | } else { |
442 | if (m_pix) _iv->setPixmap(*m_pix); | 445 | if (m_pix) _iv->setPixmap(*m_pix); |
443 | } | 446 | } |
444 | } | 447 | } |
@@ -459,8 +462,24 @@ void PIconView::slotClicked(QIconViewItem* _it) { | |||
459 | slotShowImage(); | 462 | slotShowImage(); |
460 | } | 463 | } |
461 | 464 | ||
462 | /* | 465 | /* |
466 | * Return was pressed. which is triggered by the keydown | ||
467 | * handler. The problem is that the key up will be handled | ||
468 | * by the ImageDisplayer and goes to the next image | ||
469 | */ | ||
470 | void PIconView::slotRetrun( QIconViewItem *_it ) { | ||
471 | if(!_it ) | ||
472 | return; | ||
473 | |||
474 | IconViewItem* it = static_cast<IconViewItem*>(_it); | ||
475 | if( it->isDir() ) | ||
476 | slotChangeDir( it->path() ); | ||
477 | else | ||
478 | QTimer::singleShot(0, this, SLOT(slotShowImage()) ); | ||
479 | } | ||
480 | |||
481 | /* | ||
463 | * got thumb info add to the cache if items is visible | 482 | * got thumb info add to the cache if items is visible |
464 | * we later need update after processing of slave is done | 483 | * we later need update after processing of slave is done |
465 | */ | 484 | */ |
466 | void PIconView::slotThumbInfo( const QString& _path, const QString& str ) { | 485 | void PIconView::slotThumbInfo( const QString& _path, const QString& str ) { |
diff --git a/noncore/graphics/opie-eye/gui/iconview.h b/noncore/graphics/opie-eye/gui/iconview.h index 14ad168..a424c5c 100644 --- a/noncore/graphics/opie-eye/gui/iconview.h +++ b/noncore/graphics/opie-eye/gui/iconview.h | |||
@@ -75,8 +75,9 @@ private slots: | |||
75 | /* for performance reasons make it inline in the future */ | 75 | /* for performance reasons make it inline in the future */ |
76 | void addFolders( const QStringList& ); | 76 | void addFolders( const QStringList& ); |
77 | void addFiles( const QStringList& ); | 77 | void addFiles( const QStringList& ); |
78 | void slotClicked(QIconViewItem* ); | 78 | void slotClicked(QIconViewItem* ); |
79 | void slotRetrun(QIconViewItem* ); | ||
79 | 80 | ||
80 | /**/ | 81 | /**/ |
81 | void slotThumbInfo(const QString&, const QString&); | 82 | void slotThumbInfo(const QString&, const QString&); |
82 | void slotThumbNail(const QString&, const QPixmap&); | 83 | void slotThumbNail(const QString&, const QPixmap&); |