sources/Desktop/codedrop.cpp
///////////////////////////////////////////////////////////////////////////////
// Browse for a new file (request file from user)
//

Browse for a new file (request file from user)
Browse for a new file ( request file from user )
void CodeDrop::on_BrowseFiles_clicked()
{
    QFileDialog qfd(this);
    qfd.setFileMode( QFileDialog::ExistingFile );
    qfd.setDirectory( QFileInfo( this->lastFile ).absolutePath() );
    qfd.setNameFilter( tr("Asm Listing (*.lst)" ));
    qfd.setViewMode( QFileDialog::Detail );
    if( qfd.exec() )
    {
        this->lastFile = qfd.selectedFiles()[0] ;
        this->ui->SelectedFilepath->setText( this->lastFile );
        this->SaveSettings();
    } else {
    }
}
void CodeDrop :: on_BrowseFiles_clicked ( ) { QFileDialog qfd ( this ) ; qfd . setFileMode ( QFileDialog :: ExistingFile ) ; qfd . setDirectory ( QFileInfo ( this -> lastFile ) . absolutePath ( ) ) ; qfd . setNameFilter ( tr ( " " ) ) ; qfd . setViewMode ( QFileDialog :: Detail ) ; if ( qfd . exec ( ) ) { this -> lastFile = qfd . selectedFiles ( ) [ 0 ] ; this -> ui -> SelectedFilepath -> setText ( this -> lastFile ) ; this -> SaveSettings ( ) ; } else { } }
Browse for a new file (request file from user)
Browse for a new file ( request file from user )
//;Hex Files(*.ihx *.hex)" ));
 // OK!
 // cancelled
