diff --git a/core/ModuleView.cpp b/core/ModuleView.cpp --- a/core/ModuleView.cpp +++ b/core/ModuleView.cpp @@ -175,13 +175,16 @@ } // Create the scroller + QWidget *mainWidget = new QWidget( this ); + QVBoxLayout *layout = new QVBoxLayout( mainWidget ); QScrollArea * moduleScroll = new QScrollArea( this ); + layout->addWidget(moduleScroll); // Prepare the scroll area moduleScroll->setWidgetResizable( true ); moduleScroll->setFrameStyle( QFrame::NoFrame ); moduleScroll->viewport()->setAutoFillBackground( false ); // Create the page - KPageWidgetItem *page = new KPageWidgetItem( moduleScroll, module->moduleName() ); + KPageWidgetItem *page = new KPageWidgetItem( mainWidget, module->moduleName() ); // Provide information to the users if( module->service()->hasServiceType(QStringLiteral("SystemSettingsExternalApp")) || // Is it an external app? @@ -219,6 +222,10 @@ page->setHeader( moduleInfo->comment() ); page->setIcon( QIcon::fromTheme( moduleInfo->icon() ) ); + //HACK: not much other ways to detect is a qml kcm + if (moduleProxy->realModule()->inherits("KCModuleQml")) { + page->setHeaderVisible(false); + } if( light ) { return; }