summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-09-25 04:52:52 (UTC)
committer llornkcor <llornkcor>2004-09-25 04:52:52 (UTC)
commit2b31930ef559a2893f47aa866a706ea13d99a6f5 (patch) (side-by-side diff)
tree2796ab2ebd826b2167a31cc3f8ca8ccb8c4900d1
parent688bd5382ab60c2146050fc2ff36850ef08a79b9 (diff)
downloadopie-2b31930ef559a2893f47aa866a706ea13d99a6f5.zip
opie-2b31930ef559a2893f47aa866a706ea13d99a6f5.tar.gz
opie-2b31930ef559a2893f47aa866a706ea13d99a6f5.tar.bz2
more redundant code
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index 48332b7..9cb9aba 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -363,16 +363,19 @@ void AdvancedFm::SDButtonPushed() {
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");
}
@@ -423,24 +426,16 @@ void AdvancedFm::keyReleaseEvent( QKeyEvent *e) {
homeButtonPushed();
else if( e->key() == Key_6 )
docButtonPushed();
else
e->accept();
}
-void AdvancedFm::QPEButtonPushed() {
- QString current = QPEApplication::qpeDir();
- chdir( current.latin1() );
- CurrentDir()->cd( current, TRUE);
- populateView();
- update();
-}
-
void AdvancedFm::parsetab(const QString &fileName) {
fileSystemTypeList.clear();
fsList.clear();
struct mntent *me;
FILE *mntfp = setmntent( fileName.latin1(), "r" );
if ( mntfp ) {
while ( (me = getmntent( mntfp )) != 0 ) {