author | zecke <zecke> | 2002-04-17 17:22:50 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-04-17 17:22:50 (UTC) |
commit | b94bcfb586b838885d7d0503623ea36ee0054464 (patch) (side-by-side diff) | |
tree | da2f5fb0e422e38d6fae0ab8f8572b332e7da08b | |
parent | b382414bf0446b6facd11d35df5dc097edbd5396 (diff) | |
download | opie-b94bcfb586b838885d7d0503623ea36ee0054464.zip opie-b94bcfb586b838885d7d0503623ea36ee0054464.tar.gz opie-b94bcfb586b838885d7d0503623ea36ee0054464.tar.bz2 |
include the current directory in the filename
-rw-r--r-- | libopie/ofileselector.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/ofileselector.cc b/libopie/ofileselector.cc index 968541a..ea19143 100644 --- a/libopie/ofileselector.cc +++ b/libopie/ofileselector.cc @@ -268,129 +268,129 @@ void OFileSelector::setLineEditVisible( bool show ) m_shLne = show; if( !show ){ delete m_edit; delete m_fnLabel; m_edit = 0; m_fnLabel = 0; //delete m_boxName; will be deleted } updateLay(); } void OFileSelector::setChooserVisible( bool show ) { if( show = m_shChooser ) return; m_shChooser = show; if( !show ){ delete m_mimeCheck; delete m_viewCheck; m_mimeCheck = 0; m_viewCheck = 0; } updateLay(); } QCheckBox* OFileSelector::permissionCheckbox( ) { return m_checkPerm; } void OFileSelector::setCaseSensetive( bool caSe ) { m_case = caSe; reparse(); } void OFileSelector::setShowFiles(bool files ){ m_files = files; reparse(); } void OFileSelector::setPopupMenu(QPopupMenu *pop ) { //delete oldpopup; m_custom = pop; } bool OFileSelector::setPermission( ) const { if( m_checkPerm == 0 ) return false; else return m_checkPerm->isChecked(); } void OFileSelector::setPermissionChecked( bool check ) { if( m_checkPerm == 0 ) return; m_checkPerm->setChecked( check ); } QString OFileSelector::selectedName( )const { QString string; if( m_selector == NORMAL ){ const DocLnk *lnk = m_select->selected(); string = lnk->file(); }else if(m_selector == EXTENDED || m_selector == EXTENDED_ALL ) { QListViewItem *item = m_View->currentItem(); if(item != 0 ){ - string = item->text( 1 ); + string = m_currentDir + "/" + item->text( 1 ); } } return string; } QStringList OFileSelector::selectedNames()const { QStringList list; return list; } DocLnk OFileSelector::selectedDocument( )const { DocLnk lnk; return lnk; } void OFileSelector::updateLay() { /* if( m_shTool ) // else // hide */ // save the state bool check = false; if( m_checkPerm != 0 ) check = m_checkPerm->isChecked(); QString text; if( m_edit != 0 ) text = m_edit->text(); // save current mimetype delItems(); delete m_checkPerm; m_checkPerm = 0; delete m_edit; m_edit = 0; delete m_fnLabel; m_fnLabel = 0; delete m_ok; m_ok = 0; delete m_cancel; m_cancel = 0; delete m_mimeCheck; m_mimeCheck = 0; delete m_viewCheck; m_viewCheck = 0; delete m_select; // test delete m_stack; //delete m_list; init(); if( m_shLne ) m_edit->setText(text ); if( m_shPerm ) m_checkPerm->setChecked(check ); } // let's update the mimetypes. Use the current mimefilter for the 2nd QDir retrieve // insert QListViewItems with the right options bool OFileSelector::compliesMime(const QString &path, const QString &mime ) { if( mime == "All" ) return true; MimeType type( path ); if( type.id() == mime ) return true; |