* search for the the "appdashboard" theme
* the view is transparent svn path=/trunk/KDE/kdebase/runtime/; revision=1216799
This commit is contained in:
parent
ff6234b2ac
commit
9ab8fee496
@ -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);
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user