sqlines-studio/mainwindow.cpp
// Open a file or multiple files
Open a file or multiple files
Open a file or multiple files
void MainWindow::openFileDialog()
{
    QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Open File(s)"), lastOpenDir, "");
    for(int i = 0; i < fileNames.length(); i++)
    {
        QString path = fileNames.at(i);
        std::string dir;
        std::string file;
        File::SplitDirectoryAndFile(path.toStdString().c_str(), dir, file);
    }
}
void MainWindow :: openFileDialog ( ) { QStringList fileNames = QFileDialog :: getOpenFileNames ( this , tr ( " " ) , lastOpenDir , " " ) ; for ( int i = 0 ; i < fileNames . length ( ) ; i ++ ) { QString path = fileNames . at ( i ) ; std :: string dir ; std :: string file ; File :: SplitDirectoryAndFile ( path . toStdString ( ) . c_str ( ) , dir , file ) ; } }
Open a file or multiple files
Open a file or multiple files
// Open all selected files //lastOpenDir = dir;