void ConfigModuleWithTabs::defaults() { ConfigModuleTab *tab = dynamic_cast<ConfigModuleTab *>(mTabWidget->currentPage()); if(tab) tab->defaults(); KCModule::defaults(); }
void ConfigModuleWithTabs::defaults() { ConfigModuleTab *tab = qobject_cast<ConfigModuleTab *>(mTabWidget->currentWidget()); if (tab) { tab->defaults(); } KCModule::defaults(); }
void ConfigModuleWithTabs::installProfile(KConfig * /* profile */) { for(int i = 0 ; i < mTabWidget->count() ; ++i) { ConfigModuleTab *tab = dynamic_cast<ConfigModuleTab *>(mTabWidget->page(i)); if(tab) tab->installProfile(); } }
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::load() { const int numberOfTab = mTabWidget->count(); for (int i = 0; i < numberOfTab; ++i) { ConfigModuleTab *tab = qobject_cast<ConfigModuleTab *>(mTabWidget->widget(i)); if (tab) { tab->load(); } } KCModule::load(); }
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(); } } } }