* search for the the "appdashboard" theme

* the view is transparent

svn path=/trunk/KDE/kdebase/runtime/; revision=1216799
This commit is contained in:
Marco Martin 2011-01-24 23:00:42 +00:00
parent ff6234b2ac
commit 9ab8fee496
2 changed files with 6 additions and 1 deletions

View File

@ -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 @@ PlasmaKPart::~PlasmaKPart()
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);

View File

@ -33,6 +33,8 @@ PlasmaKPartView::PlasmaKPartView(Plasma::Containment* containment, int uid, QWid
setFocusPolicy(Qt::NoFocus);
connectContainment(containment);
setWallpaperEnabled(false);
viewport()->setAutoFillBackground(false);
setAutoFillBackground(false);
}
PlasmaKPartView::~PlasmaKPartView()
@ -83,4 +85,5 @@ void PlasmaKPartView::updateGeometry()
}
}
#include "plasmakpartview.moc"