author | llornkcor <llornkcor> | 2004-09-25 04:54:06 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-09-25 04:54:06 (UTC) |
commit | e474ac3ccfb7668eca0de69d42d7d8505f8ae5d8 (patch) (side-by-side diff) | |
tree | e6244b2241099077cd289bd1a0460a58b8515f37 | |
parent | 2b31930ef559a2893f47aa866a706ea13d99a6f5 (diff) | |
download | opie-e474ac3ccfb7668eca0de69d42d7d8505f8ae5d8.zip opie-e474ac3ccfb7668eca0de69d42d7d8505f8ae5d8.tar.gz opie-e474ac3ccfb7668eca0de69d42d7d8505f8ae5d8.tar.bz2 |
unused
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 9cb9aba..3bfec7d 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -348,69 +348,68 @@ void AdvancedFm::changeTo(QString dir) { populateView(); update(); } void AdvancedFm::homeButtonPushed() { changeTo(QDir::homeDirPath()); } void AdvancedFm::docButtonPushed() { changeTo(QPEApplication::documentDir()); } void AdvancedFm::SDButtonPushed() { changeTo("/mnt/card");// this can change so fix } void AdvancedFm::CFButtonPushed() { if(zaurusDevice) changeTo("/mnt/cf"); //zaurus else changeTo("/mnt/hda"); //ipaq } void AdvancedFm::QPEButtonPushed() { changeTo(QPEApplication::qpeDir()); } void AdvancedFm::doAbout() { QMessageBox::message("AdvancedFm",tr("<P>Advanced FileManager is copyright 2002-2003 by L.J.Potter<llornkcor@handhelds.org> and is licensed by the GPL</P>")); } void AdvancedFm::keyPressEvent( QKeyEvent *e) { - qDebug("keypressevent"); + Q_UNUSED(e); } void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { - qDebug("key release"); if( CurrentView()->hasFocus() ) e->ignore(); if( e->key() == Key_Left ) upDir(); else if( e->key() == Key_Return || e->key() == Key_Enter) navigateToSelected(); else if( e->key() == Key_Tab) setOtherTabCurrent(); else if( e->key() == Key_Delete ) del(); else if( e->key() == Key_A) copyAs(); else if( e->key() == Key_C) copy(); else if( e->key() == Key_E) runThis(); else if( e->key() == Key_G) currentPathCombo->lineEdit()->setFocus(); else if( e->key() == Key_H ) showHidden(); else if( e->key() == Key_I) fileStatus(); else if( e->key() == Key_M) move(); else if( e->key() == Key_N ) mkDir(); else if( e->key() == Key_P) filePerms(); else if( e->key() == Key_R ) rn(); else if( e->key() == Key_U ) upDir(); @@ -784,40 +783,41 @@ void AdvancedFm::gotoDirectory(const QString &file) { thisDir->setPath( curDir ); chdir( curDir.latin1() ); thisDir->cd( curDir, TRUE); populateView(); } else if(QFileInfo(curDir).exists()) { QFileInfo fileInfo(curDir); curDir=fileInfo.dirPath(); if(QDir( curDir).exists() ) { thisDir->setPath( curDir ); chdir( curDir.latin1() ); thisDir->cd( curDir, TRUE); populateView(); } findFile(file); } } void AdvancedFm::findFile(const QString &fileName) { QFileInfo fi(fileName); QListView *thisView = CurrentView(); QListViewItemIterator it( thisView ); for ( ; it.current(); ++it ) { if(it.current()->text(0) == fi.fileName()) { it.current()->setSelected(true); thisView->ensureItemVisible(it.current()); } } } void AdvancedFm::slotSwitchMenu(int item) { + Q_UNUSED(item); // qDebug( "Switch %d",item); // viewMenu->setItemChecked(item, true); } void AdvancedFm::navigateToSelected() { if( !CurrentView()->currentItem()) return; doDirChange(); } |