sqldata_w/mainwindow.cpp
// Save combobox items to INI file
Save combobox items to INI file
Save combobox items to INI file
void MainWindow::SaveComboBoxToIni(char const *optionName, QComboBox *comboBox)
{
    int count = comboBox->count();
    if(count == 0)
      return;
    QStringList list;
    for(int i = 0; i < count; i++)
      list.append(comboBox->itemText(i));
    _settings->setValue(QString(optionName), list);
}
void MainWindow :: SaveComboBoxToIni ( char const * optionName , QComboBox * comboBox ) { int count = comboBox -> count ( ) ; if ( count == 0 ) return ; QStringList list ; for ( int i = 0 ; i < count ; i ++ ) list . append ( comboBox -> itemText ( i ) ) ; _settings -> setValue ( QString ( optionName ) , list ) ; }
Save combobox items to INI file
Save combobox items to INI file