Commit b6ad57fc authored by Björn Feber's avatar Björn Feber

Use KCM name in KCM header

Summary:
Use the KCM name in Qt Widgets KCM headers, to make them consistent with others.
{F6614892}

Test Plan: Open a Qt Widgets KCM like "Widget Style".

Reviewers: #plasma, #vdg, ngraham

Reviewed By: #vdg, ngraham

Subscribers: ngraham, plasma-devel, #vdg, #plasma

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D19006
parent 4ef5a0b0
......@@ -213,7 +213,7 @@ void ModuleView::updatePageIconHeader( KPageWidgetItem * page, bool light )
return;
}
page->setHeader( moduleInfo->comment() );
page->setHeader( moduleInfo->moduleName() );
page->setIcon( QIcon::fromTheme( moduleInfo->icon() ) );
//HACK: not much other ways to detect is a qml kcm
if ( moduleProxy && moduleProxy->realModule()->inherits("KCModuleQml") ) {
......@@ -224,7 +224,7 @@ void ModuleView::updatePageIconHeader( KPageWidgetItem * page, bool light )
}
if( moduleProxy && moduleProxy->realModule()->useRootOnlyMessage() ) {
page->setHeader( moduleInfo->comment() + QStringLiteral("<br><small>") + moduleProxy->realModule()->rootOnlyMessage() + QStringLiteral("</small>") );
page->setHeader( moduleInfo->moduleName() + QStringLiteral("<br><small>") + moduleProxy->realModule()->rootOnlyMessage() + QStringLiteral("</small>") );
page->setIcon( KDE::icon( moduleInfo->icon(), QStringList() << QStringLiteral("dialog-warning") ) );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment