rem: saveMainWindowSettings(KGlobal::config(),"mainWindow_options"); KEditToolbar *dlg = new KEditToolbar(actionCollection(), "knodeui.rc");  if (dlg->exec()) { createGUI("knodeui.rc"); initPopups(); applyMainWindowSettings(KGlobal::config(),"mainWindow_options"); }  delete dlg;
add: saveMainWindowSettings(knGlobals.config(),"mainWindow_options"); KEditToolbar dlg(actionCollection(), "knodeui.rc"); connect(&dlg,SIGNAL( newToolbarConfig() ), this, SLOT( slotNewToolbarConfig() )); dlg.exec();
context: void KNMainWindow::slotConfToolbar(){  saveMainWindowSettings(KGlobal::config(),"mainWindow_options");  KEditToolbar *dlg = new KEditToolbar(actionCollection(), "knodeui.rc");  if (dlg->exec()) {    createGUI("knodeui.rc");    initPopups();    applyMainWindowSettings(KGlobal::config(),"mainWindow_options");  }  delete dlg;}