Esempio n. 1
0
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();
    }
}
Esempio n. 2
0
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();
            }
        }
    }
}