void ConfigModuleWithTabs::save() { KCModule::save(); for(int i = 0 ; i < mTabWidget->count() ; ++i) { ConfigModuleTab *tab = dynamic_cast<ConfigModuleTab *>(mTabWidget->page(i)); if(tab) tab->save(); } }
void ConfigModuleWithTabs::save() { if (mWasInitialized) { KCModule::save(); const int numberOfTab = mTabWidget->count(); for (int i = 0; i < numberOfTab; ++i) { ConfigModuleTab *tab = qobject_cast<ConfigModuleTab *>(mTabWidget->widget(i)); if (tab) { tab->save(); } } } }