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

void KPureftpdScript::load (  ) 

Load configuration data and set the widgets states and values

Definition at line 1357 of file kcmpureftpdscript.cpp.

References config, and script.

Referenced by KPureftpdScript().

                           {
  // application options
  config->setGroup("Options");
  debug=config->readUnsignedNumEntry("Debug",0);

  // save the default GUI in a fake script
  QString scriptfile, id;
  ScriptItem s;
  scriptfile = KGlobal::dirs()->findResource("data","kcmpureftpdscript/guidata");
  if (script->load(s,scriptfile,id) == Script::LoadOk) {
    setGui(s.guidata());
  } else {
    // set some safe defaults defined in GuiData class
    GuiData g;
    setGui(g);
  }

  emit changed(false);
}


Generated by  Doxygen 1.6.0   Back to index