[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/runtime/plasma/kpart
From:       Marco Martin <notmart () gmail ! com>
Date:       2011-01-24 23:00:42
Message-ID: 20110124230042.92987AC8B9 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1216799 by mart:

* search for the the "appdashboard" theme
* the view is transparent


 M  +3 -1      plasmakpart.cpp  
 M  +3 -0      plasmakpartview.cpp  


--- trunk/KDE/kdebase/runtime/plasma/kpart/plasmakpart.cpp #1216798:1216799
@@ -28,9 +28,11 @@
 #include <Plasma/Containment>
 #include <Plasma/Theme>
 #include <Plasma/Applet>
+#include <Plasma/Wallpaper>
 #include <plasma/pluginloader.h>
 
 #include <KDebug>
+#include <KStandardDirs>
 
 #include <QCheckBox>
 #include <QHash>
@@ -79,7 +81,7 @@
 void PlasmaKPart::setThemeDefaults()
 {
     KConfigGroup cg(KSharedConfig::openConfig("plasmarc"), "Theme-plasma-kpart" );
-    const QString themeName = cg.readEntry("name", "default");
+    const QString themeName = cg.readEntry("name", "appdashboard");
     Plasma::Theme::defaultTheme()->setUseGlobalSettings(false);
     Plasma::Theme::defaultTheme()->setThemeName(themeName);
 
--- trunk/KDE/kdebase/runtime/plasma/kpart/plasmakpartview.cpp #1216798:1216799
@@ -33,6 +33,8 @@
     setFocusPolicy(Qt::NoFocus);
     connectContainment(containment);
     setWallpaperEnabled(false);
+    viewport()->setAutoFillBackground(false);
+    setAutoFillBackground(false);
 }
 
 PlasmaKPartView::~PlasmaKPartView()
@@ -83,4 +85,5 @@
     }
 }
 
+
 #include "plasmakpartview.moc"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic