Commit d0408b6f authored by Michael Reeves's avatar Michael Reeves

*QFileDialog::getExistingDirectoryUrl uses a less dated UI.

*scrat unneeded code.
parent 4b1e03e0
......@@ -236,31 +236,6 @@ void OpenDialog::selectURL( QComboBox* pLine, bool bDir, int i, bool bSave ) {
QUrl newURL = bDir ? QFileDialog::getExistingDirectoryUrl( this, QString(), current)
: bSave ? QFileDialog::getSaveFileUrl( this, QString(), current, "all/allfiles")
: QFileDialog::getOpenFileUrl( this, QString(), current, "all/allfiles");
/*QUrl newURL;
if( !bDir ) {
newURL = bSave ? QFileDialog::getSaveFileUrl( this, QString(), current, "all/allfiles" )
: QFileDialog::getOpenFileUrl( this, QString(), current, "all/allfiles" );
}
else {
KFileDialog dlg( current, "all/allfiles", this );
//Sadlly KFileDialog::getExistingDirectoryUrl doesn't do this. Instead it presents a very akword windows 95 like interface.
dlg.setOperationMode( KFileDialog::Opening );
dlg.setMode( KFile::Directory | KFile::ExistingOnly );
dlg.setWindowTitle( i18n( "Select Directory" ) );
dlg.exec();
newURL = dlg.selectedUrl();
}*/
/*if( !newURL.isEmpty() ) {
/*
Since we are selecting a directory open in the parent directory
not the one selected.
*
QFileDialog::setStartDir( KIO::upUrl( newURL ) );
pLine->setEditText( newURL.url() );
}*/
// newURL won't be modified if nothing was selected.
}
void OpenDialog::selectFileA() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment