author | zecke <zecke> | 2002-10-29 19:08:40 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-29 19:08:40 (UTC) |
commit | 2957aae1073f4c41dd6783c41d1199be71cd9f4a (patch) (side-by-side diff) | |
tree | 2aa5c4f61105aa151867e170601de58511479fd8 /libopie/ofileselector/ofileselector.cpp | |
parent | a575fd4c862693705018902b4482c5135a8cb6a2 (diff) | |
download | opie-2957aae1073f4c41dd6783c41d1199be71cd9f4a.zip opie-2957aae1073f4c41dd6783c41d1199be71cd9f4a.tar.gz opie-2957aae1073f4c41dd6783c41d1199be71cd9f4a.tar.bz2 |
the reverse getting of filenames is actually enabled
There will be some code clean ups...
but the interfaces should be fine now
Diffstat (limited to 'libopie/ofileselector/ofileselector.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/ofileselector/ofileselector.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/libopie/ofileselector/ofileselector.cpp b/libopie/ofileselector/ofileselector.cpp index 255e79e..9ce07dd 100644 --- a/libopie/ofileselector/ofileselector.cpp +++ b/libopie/ofileselector/ofileselector.cpp @@ -262,8 +262,6 @@ void OFileSelector::setPopupFactory(OPopupMenuFactory */*popup*/ ) */ } -//void OFileSelector::updateL - QString OFileSelector::selectedName() const { QString name; @@ -271,11 +269,7 @@ QString OFileSelector::selectedName() const DocLnk lnk = m_select->selectedDocument(); name = lnk.file(); }else { - if ( m_shLne ) { - name = m_currentDir + "/" +m_edit->text(); - }else{ - name = m_currentDir + "/" + currentView()->selectedName(); - } + name = currentLister()->selectedName(); } return name; } @@ -422,7 +416,6 @@ void OFileSelector::slotLocationActivated(const QString &file) cd(info.dirPath( TRUE ) ); //absolute else cd(name ); - reparse(); } void OFileSelector::slotInsertLocationPath(const QString ¤tPath, int count) { @@ -454,8 +447,6 @@ void OFileSelector::locationComboChanged() cd(info.dirPath(TRUE) ); //absolute path else cd( m_location->lineEdit()->text() ); - - reparse(); } void OFileSelector::init() { @@ -854,6 +845,8 @@ void OFileSelector::slotDelete() } void OFileSelector::cdUP() { + // FIXME won't work on non filesystem based systems + // better call the Olister QDir dir( m_currentDir ); dir.cdUp(); if(dir.exists() ){ @@ -862,8 +855,6 @@ void OFileSelector::cdUP() int count = m_location->count(); slotInsertLocationPath( m_currentDir, count); m_location->setCurrentItem( indexByString( m_location, m_currentDir)); - //this wont work in all instances - // FIXME } } void OFileSelector::slotHome() |