rem: KConfig *config = kapp->config();
add: KConfig *config = KGlobal::config();
context: void writeSettings(){  KConfig *config = kapp->config();  config->setGroup( "Font" );  config->writeEntry("Font",postitdefaults.font);  config->setGroup("Colors");  config->writeEntry("ForeColor",postitdefaults.forecolor);  config->writeEntry("BackColor",postitdefaults.backcolor);  config->setGroup("Geometry");  config->writeEntry("width",  postitdefaults.width);  config->writeEntry("height",  postitdefaults.height);  config->setGroup("Misc");  config->writeEntry("frame3d",postitdefaults.frame3d);  config->writeEntry("always visible", postitdefaults.onTop);  config->writeEntry("autoindent",postitdefaults.autoindent);  config->writeEntry("dock",KPostit::dock);  config->writeEntry("play sound", postitdefaults.playSound);  config->setGroup("Commands");  config->writeEntry("mailCmd",postitdefaults.mailcommand);  config->writeEntry("printCmd",postitdefaults.printcommand);  config->writeEntry("soundCmd",postitdefaults.soundcommand);  config->sync();}