void KateFileSelector::setDir( KURL u ) { KURL newurl; if ( !u.isValid() ) newurl.setPath( TQDir::homeDirPath() ); else newurl = u; TQString pathstr = newurl.path(+1); newurl.setPath(pathstr); if ( !kateFileSelectorIsReadable ( newurl ) ) newurl.cd(TQString::fromLatin1("..")); if ( !kateFileSelectorIsReadable (newurl) ) newurl.setPath( TQDir::homeDirPath() ); dir->setURL(newurl, true); }
void KDir::cdUp() { KURL u = myLocation.url().data(); u.cd(".."); setPath(u.url()); }
KURL NewFileChooser::url() const { KURL result ( m_urlreq->url() ); result.cd( m_filename->text() ); return result; }