sqlines-studio/options.cpp
// load SQLines Studio options and saved data
load SQLines Studio options and saved data
load SQLines Studio options and saved data
void Options::loadOptions()
{
    workingDirectory = settings->value(OPTION_WORKDIR).toString();
    if(workingDirectory.isEmpty())
    {
      workingDirectory = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
      if(workingDirectory.isEmpty())
       workingDirectory = QDir::toNativeSeparators(QDir::homePath());
    }
    ui->workdirEdit->setText(workingDirectory);
}
void Options :: loadOptions ( ) { workingDirectory = settings -> value ( OPTION_WORKDIR ) . toString ( ) ; if ( workingDirectory . isEmpty ( ) ) { workingDirectory = QDesktopServices :: storageLocation ( QDesktopServices :: DocumentsLocation ) ; if ( workingDirectory . isEmpty ( ) ) workingDirectory = QDir :: toNativeSeparators ( QDir :: homePath ( ) ) ; } ui -> workdirEdit -> setText ( workingDirectory ) ; }
load SQLines Studio options and saved data
load SQLines Studio options and saved data
// get working directory // reading application data settings