summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -359,24 +359,27 @@ void AdvancedFm::docButtonPushed() {
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");
}
void AdvancedFm::keyReleaseEvent( QKeyEvent *e) {
qDebug("key release");
if( CurrentView()->hasFocus() )
@@ -419,32 +422,24 @@ void AdvancedFm::keyReleaseEvent( QKeyEvent *e) {
CFButtonPushed();
else if( e->key() == Key_4)
SDButtonPushed();
else if( e->key() == Key_5 )
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 ) {
QString deviceName = me->mnt_fsname;
QString filesystemType = me->mnt_type;
QString mountDir = me->mnt_dir;
if(deviceName != "none") {