summaryrefslogtreecommitdiff
path: root/noncore/apps/advancedfm/advancedfmMenu.cpp
authorllornkcor <llornkcor>2004-09-25 05:26:52 (UTC)
committer llornkcor <llornkcor>2004-09-25 05:26:52 (UTC)
commit43ade399621278b78d658f660bde7f0e39457f53 (patch) (unidiff)
tree271268029e4a128c93adaae54bfd47084881e90f /noncore/apps/advancedfm/advancedfmMenu.cpp
parent45a59fcd4a35c9c0ce35162c0ac7a5c914e24a52 (diff)
downloadopie-43ade399621278b78d658f660bde7f0e39457f53.zip
opie-43ade399621278b78d658f660bde7f0e39457f53.tar.gz
opie-43ade399621278b78d658f660bde7f0e39457f53.tar.bz2
change focus for edit
Diffstat (limited to 'noncore/apps/advancedfm/advancedfmMenu.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfmMenu.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp
index 5a46579..2e6b0da 100644
--- a/noncore/apps/advancedfm/advancedfmMenu.cpp
+++ b/noncore/apps/advancedfm/advancedfmMenu.cpp
@@ -45,7 +45,7 @@ void AdvancedFm::doDirChange() {
45 if( pathItem.find(" -> ",0,TRUE) != -1) 45 if( pathItem.find(" -> ",0,TRUE) != -1)
46 pathItem = dealWithSymName((const QString&)pathItem)+"/"; 46 pathItem = dealWithSymName((const QString&)pathItem)+"/";
47// owarn << pathItem << oendl; 47// owarn << pathItem << oendl;
48 gotoDirectory( CurrentDir()->path()+"/"+pathItem.left( pathItem.length() - 1) ); 48 changeTo( CurrentDir()->path()+"/"+pathItem.left( pathItem.length() - 1) );
49 } 49 }
50} 50}
51 51
@@ -741,6 +741,7 @@ void AdvancedFm::oprocessStderr(OProcess*, char *buffer, int ) {
741 741
742bool AdvancedFm::eventFilter( QObject * o, QEvent * e ) { 742bool AdvancedFm::eventFilter( QObject * o, QEvent * e ) {
743 if ( o->inherits( "QLineEdit" ) ) { 743 if ( o->inherits( "QLineEdit" ) ) {
744 qDebug("QLineEdit event");
744 if ( e->type() == QEvent::KeyPress ) { 745 if ( e->type() == QEvent::KeyPress ) {
745 QKeyEvent *ke = (QKeyEvent*)e; 746 QKeyEvent *ke = (QKeyEvent*)e;
746 if ( ke->key() == Key_Return || 747 if ( ke->key() == Key_Return ||
@@ -758,7 +759,7 @@ bool AdvancedFm::eventFilter( QObject * o, QEvent * e ) {
758 return true; 759 return true;
759 } 760 }
760 } 761 }
761 if ( o->inherits( "QListView" ) ) { 762/* if ( o->inherits( "QListView" ) ) {
762 if ( e->type() == QEvent::FocusIn ) { 763 if ( e->type() == QEvent::FocusIn ) {
763// if( o == Local_View) { //keep track of which view 764// if( o == Local_View) { //keep track of which view
764 // qDebug("local view"); 765 // qDebug("local view");
@@ -770,7 +771,7 @@ bool AdvancedFm::eventFilter( QObject * o, QEvent * e ) {
770 } 771 }
771 OtherView()->setSelected( OtherView()->currentItem(), FALSE );//make sure there's correct selection 772 OtherView()->setSelected( OtherView()->currentItem(), FALSE );//make sure there's correct selection
772 } 773 }
773 774*/
774 return QWidget::eventFilter( o, e ); 775 return QWidget::eventFilter( o, e );
775} 776}
776 777
@@ -820,6 +821,7 @@ void AdvancedFm::renameIt() {
820} 821}
821 822
822void AdvancedFm::okRename() { 823void AdvancedFm::okRename() {
824 qDebug("okrename");
823 if( !renameBox) return; 825 if( !renameBox) return;
824 826
825 QString newName = renameBox->text(); 827 QString newName = renameBox->text();