[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kutils
From: Dario Freddi <drf () kde ! org>
Date: 2009-08-31 14:17:05
Message-ID: 1251728225.711528.20585.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1017788 by dafre:
Experimental commit. First attempt of changing the UI of setRootMessage. Check both \
systemsettings and kcmshell4 to see the difference
M +9 -3 kcmoduleproxy.cpp
M +9 -1 kcmultidialog.cpp
--- trunk/KDE/kdelibs/kutils/kcmoduleproxy.cpp #1017787:1017788
@@ -49,6 +49,8 @@
#include <kcmoduleloader.h>
+#include "kcolorscheme.h"
+
#include "ksettingswidgetadaptor.h"
/*
@@ -121,10 +123,14 @@
{
rootInfo = new QLabel( parent );
topLayout->insertWidget( 0, rootInfo );
+
+ QPalette palette = rootInfo->palette();
+ KStatefulBrush stbrush(KColorScheme::Window, KColorScheme::NeutralBackground);
+ qDebug() << stbrush.brush(rootInfo);
+ palette.setBrush(QPalette::Window, stbrush.brush(rootInfo));
+ rootInfo->setPalette(palette);
+ rootInfo->setAutoFillBackground(true);
- rootInfo->setFrameShape( QFrame::Box );
- rootInfo->setFrameShadow( QFrame::Raised );
-
const QString message = kcm->rootOnlyMessage();
if( message.isEmpty() )
rootInfo->setText( i18n(
--- trunk/KDE/kdelibs/kutils/kcmultidialog.cpp #1017787:1017788
@@ -40,6 +40,8 @@
#include "auth/lib/kauthaction.h"
+#include "kcolorscheme.h"
+
#include "kcmoduleloader.h"
#include "kcmoduleproxy.h"
@@ -296,8 +298,14 @@
kDebug(710) << moduleInfo.moduleName();
KPageWidgetItem *item = new KPageWidgetItem(kcm, moduleInfo.moduleName());
- item->setHeader( moduleInfo.comment() );
+
+ if (kcm->useRootOnlyMessage()) {
+ item->setHeader( "<b>"+moduleInfo.comment() + "</b><br><i>" + \
kcm->rootOnlyMessage() + "</i>" ); + item->setIcon( KIcon( moduleInfo.icon(), 0, \
QStringList() << "dialog-warning" ) ); + } else {
+ item->setHeader( moduleInfo.comment() );
item->setIcon( KIcon( moduleInfo.icon() ) );
+ }
item->setProperty("_k_weight", moduleInfo.weight());
bool updateCurrentPage = false;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic