port away from kglobal

This commit is contained in:
Marco Martin 2013-03-05 16:08:09 +01:00
parent 772e05749d
commit 8e7b77153e

View File

@ -21,7 +21,6 @@
#include <QDebug> #include <QDebug>
#include <QScreen> #include <QScreen>
#include <KGlobal>
#include <KWindowSystem> #include <KWindowSystem>
#include <kwindoweffects.h> #include <kwindoweffects.h>
@ -71,7 +70,7 @@ KConfigGroup PanelView::config() const
if (!containment()) { if (!containment()) {
return KConfigGroup(); return KConfigGroup();
} }
KConfigGroup views(KGlobal::config(), "PlasmaViews"); KConfigGroup views(KSharedConfig::openConfig(), "PlasmaViews");
views = KConfigGroup(&views, QString("Panel %1").arg(containment()->id())); views = KConfigGroup(&views, QString("Panel %1").arg(containment()->id()));
if (containment()->formFactor() == Plasma::Vertical) { if (containment()->formFactor() == Plasma::Vertical) {