[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/kcontrol4/src/classic
From: Ben Cooksley <sourtooth () gmail ! com>
Date: 2009-02-20 12:13:52
Message-ID: 1235132032.961900.17139.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 928902 by bcooksley:
Implement titles for the sub module list
M +5 -1 CategoryList.cpp
--- trunk/playground/base/kcontrol4/src/classic/CategoryList.cpp #928901:928902
@@ -55,7 +55,7 @@
void CategoryList::updatePixmap()
{
QString content;
- QString caption;
+ QString moduleName;
KIconLoader * iconL = KIconLoader::global();
QString templatePath = KStandardDirs::locate("data", "kcontrol4/classic/main.html");
@@ -73,6 +73,10 @@
templateString = templateString.arg( i18n(kcc_infotext) );
templateString = templateString.arg( i18n(title_infotext) );
templateString = templateString.arg( i18n(intro_infotext) );
+ if( categoryMenu.isValid() ) {
+ moduleName = itemModel->data(categoryMenu, Qt::UserRole).value<MenuItem*>()->service->name();
+ }
+ content += "<div id=\"tableTitle\">" + moduleName + "</div>";
content += "<table class=\"kc_table\">\n";
for( int done = 0; itemModel->rowCount(categoryMenu) > done; done = 1 + done ) {
QModelIndex childIndex = itemModel->index( done, 0, categoryMenu );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic