summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-10-06 20:59:04 (UTC)
committer llornkcor <llornkcor>2002-10-06 20:59:04 (UTC)
commit2623a1e2fddf0bfb91191ea7224f016032336ed5 (patch) (side-by-side diff)
tree3ee4d0330368bc3508778298b907ade1cfdf0ac1
parente334186122e512a57bd27026014f01f501db93fc (diff)
downloadopie-2623a1e2fddf0bfb91191ea7224f016032336ed5.zip
opie-2623a1e2fddf0bfb91191ea7224f016032336ed5.tar.gz
opie-2623a1e2fddf0bfb91191ea7224f016032336ed5.tar.bz2
fix select and scroll
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index 3aa516c..ec475a4 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -321,10 +321,14 @@ void AdvancedFm::localListClicked(QListViewItem *selectedItem) {
currentDir.cd(strItem,FALSE);
populateLocalView();
+ Local_View->ensureItemVisible(Local_View->firstChild());
+
} else {
currentDir.cdUp();
populateLocalView();
+ Local_View->ensureItemVisible(Local_View->firstChild());
}
if(QDir(strItem).exists()){
currentDir.cd(strItem, TRUE);
+ Local_View->ensureItemVisible(Local_View->firstChild());
populateLocalView();
}
@@ -340,5 +344,4 @@ void AdvancedFm::localListClicked(QListViewItem *selectedItem) {
chdir(strItem.latin1());
}
- Local_View->ensureItemVisible(Local_View->firstChild());
}
@@ -361,11 +364,14 @@ void AdvancedFm::remoteListClicked(QListViewItem *selectedItem) {
currentRemoteDir.cd(strItem,FALSE);
populateRemoteView();
+ Remote_View->ensureItemVisible(Remote_View->firstChild());
} else {
currentRemoteDir.cdUp();
populateRemoteView();
+ Remote_View->ensureItemVisible(Remote_View->firstChild());
}
if(QDir(strItem).exists()){
currentRemoteDir.cd(strItem, TRUE);
populateRemoteView();
+ Remote_View->ensureItemVisible(Remote_View->firstChild());
}
} else {
@@ -380,5 +386,4 @@ void AdvancedFm::remoteListClicked(QListViewItem *selectedItem) {
chdir(strItem.latin1());
}
- Remote_View->ensureItemVisible(Remote_View->firstChild());
}
}
@@ -781,5 +786,7 @@ void AdvancedFm::showFileMenu() {
m->insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() ));
+#if defined(QT_QWS_OPIE)
m->insertItem( tr( "Properties" ), this, SLOT( doProperties() ));
+#endif
m->setCheckable(TRUE);
if (!b)