-rw-r--r-- | libopie/ofileselector.cc | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/libopie/ofileselector.cc b/libopie/ofileselector.cc index 14f035e..fbe69ed 100644 --- a/libopie/ofileselector.cc +++ b/libopie/ofileselector.cc @@ -749,2 +749,5 @@ void OFileSelector::initializeListView() } + int count = m_location->count(); + m_location->insertItem(m_currentDir ); + m_location->setCurrentItem( count ); }; @@ -1004,2 +1007,7 @@ bool OFileSelector::cd(const QString &str ) reparse(); + if(m_shTool ){ + int count = m_location->count(); + m_location->insertItem(str ); + m_location->setCurrentItem( count ); + } return true; @@ -1055,5 +1063,18 @@ void OFileSelector::cdUP() reparse(); + int count = m_location->count(); + m_location->insertItem(m_currentDir ); + m_location->setCurrentItem( count ); } } +void OFileSelector::slotHome() +{ + cd(QDir::homeDirPath() ); +} +void OFileSelector::slotDoc() +{ + cd(QDir::homeDirPath() + "/Documents" ); +} +void OFileSelector::slotNavigate() +{ - +} |