const KAboutData * ModuleView::aboutData() const { KCModuleProxy * activeModule = d->mPages.value( d->mPageWidget->currentPage() ); KAboutData * aboutData = 0; if( activeModule ) { aboutData = const_cast<KAboutData*>( activeModule->aboutData() ); } if ( aboutData ) { aboutData->setProgramIconName( activeModule->moduleInfo().service()->icon() ); return aboutData; } return 0; }
const KAboutData * ModuleView::aboutData() const { KCModuleProxy * activeModule = d->mPages.value( d->mPageWidget->currentPage() ); KAboutData * aboutData = 0; if( activeModule ) { aboutData = const_cast<KAboutData*>( activeModule->aboutData() ); } if ( aboutData ) { QApplication::setWindowIcon( QIcon::fromTheme(activeModule->moduleInfo().service()->icon()) ); return aboutData; } return 0; }