author | zecke <zecke> | 2004-04-07 23:57:11 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-04-07 23:57:11 (UTC) |
commit | c968f44205a5da7dc37029e701f527450692e39a (patch) (side-by-side diff) | |
tree | 2739918a38d2b12c446c34b77ee9d74425fdf51c | |
parent | 10ec13c9068e7e4ca0acf75e5843ebd91e4e8566 (diff) | |
download | opie-c968f44205a5da7dc37029e701f527450692e39a.zip opie-c968f44205a5da7dc37029e701f527450692e39a.tar.gz opie-c968f44205a5da7dc37029e701f527450692e39a.tar.bz2 |
Enter folders on Return
-rw-r--r-- | noncore/graphics/opie-eye/gui/iconview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/gui/iconview.cpp b/noncore/graphics/opie-eye/gui/iconview.cpp index c07a1e5..7e4164b 100644 --- a/noncore/graphics/opie-eye/gui/iconview.cpp +++ b/noncore/graphics/opie-eye/gui/iconview.cpp @@ -122,16 +122,18 @@ PIconView::PIconView( QWidget* wid, Opie::Core::OConfig* cfg ) m_views = new QComboBox( hbox, "View As" ); connect( m_views, SIGNAL(activated(int)), this, SLOT(slotViewChanged(int)) ); m_view= new QIconView( this ); connect(m_view, SIGNAL(clicked(QIconViewItem*) ), this, SLOT(slotClicked(QIconViewItem*)) ); + connect(m_view, SIGNAL(returnPressed(QIconViewItem*)), + this, SLOT(slotClicked(QIconViewItem*)) ); m_view->setArrangement( QIconView::LeftToRight ); m_view->setItemTextPos( QIconView::Right ); int dw = QApplication::desktop()->width(); int viewerWidth = dw-style().scrollBarExtent().width(); m_view->setGridX( viewerWidth-3*m_view->spacing()); m_view->setGridY( fontMetrics().height()*2+40 ); @@ -406,17 +408,16 @@ void PIconView::slotBeam() { QString pa = currentFileName( isDir ); if ( isDir && pa.isEmpty() ) return; Ir* ir = new Ir( this ); connect( ir, SIGNAL(done(Ir*)), this, SLOT(slotBeamDone(Ir*))); ir->send(pa, tr( "Image" ) ); - } /* * BEAM done clean up */ void PIconView::slotBeamDone( Ir* ir) { delete ir; } |