Logo Search packages:      
Sourcecode: qtsmbstatus version File versions  Download package

void main_windows::readHistoryFile (  )  [private]

Read the address history. On startup, read history.

Definition at line 250 of file main_windows.cpp.

{
      debugQt ("main_windows::readHistoryFile()");
      QString value;
      QSettings settings(QSettings::UserScope,"adella.org", "qtsmbstatus");
      settings.beginGroup("/MainWindow");
            settings.beginGroup("/History");
                  for ( int i = 0; i < 20 ; ++i )
                  {
                        value=settings.value( "recentAddress" +QString::number( i) ).toString();
                        if (!value.isEmpty())
                              comboBox_hostaddr->insertItem( value );
                  }
            settings.endGroup();
      settings.endGroup();
}


Generated by  Doxygen 1.6.0   Back to index