summaryrefslogtreecommitdiff
path: root/noncore
authorzecke <zecke>2004-04-07 23:57:11 (UTC)
committer zecke <zecke>2004-04-07 23:57:11 (UTC)
commitc968f44205a5da7dc37029e701f527450692e39a (patch) (side-by-side diff)
tree2739918a38d2b12c446c34b77ee9d74425fdf51c /noncore
parent10ec13c9068e7e4ca0acf75e5843ebd91e4e8566 (diff)
downloadopie-c968f44205a5da7dc37029e701f527450692e39a.zip
opie-c968f44205a5da7dc37029e701f527450692e39a.tar.gz
opie-c968f44205a5da7dc37029e701f527450692e39a.tar.bz2
Enter folders on Return
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/gui/iconview.cpp3
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
@@ -118,24 +118,26 @@ PIconView::PIconView( QWidget* wid, Opie::Core::OConfig* cfg )
QHBox *hbox = new QHBox( this );
QLabel* lbl = new QLabel( hbox );
lbl->setText( tr("View as" ) );
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 );
initKeys();
@@ -402,25 +404,24 @@ void PIconView::slotRename() {
* BEAM the current file
*/
void PIconView::slotBeam() {
bool isDir;
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;
}
void PIconView::slotStart() {
m_view->viewport()->setUpdatesEnabled( false );
}