add configNeedsSaving to View as with Applet and what not
svn path=/trunk/KDE/kdelibs/; revision=941552
This commit is contained in:
parent
624ebc8759
commit
04b65db3c8
13
view.cpp
13
view.cpp
@ -97,8 +97,9 @@ public:
|
|||||||
|
|
||||||
void containmentScreenChanged(int wasScreen, int newScreen, Plasma::Containment *containment)
|
void containmentScreenChanged(int wasScreen, int newScreen, Plasma::Containment *containment)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(wasScreen)
|
||||||
lastScreen = newScreen;
|
lastScreen = newScreen;
|
||||||
lastDesktop = this->containment->desktop();
|
lastDesktop = containment->desktop();
|
||||||
}
|
}
|
||||||
|
|
||||||
void initGraphicsView()
|
void initGraphicsView()
|
||||||
@ -332,6 +333,16 @@ KConfigGroup View::config() const
|
|||||||
return KConfigGroup(&views, QString::number(d->viewId));
|
return KConfigGroup(&views, QString::number(d->viewId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void View::configNeedsSaving() const
|
||||||
|
{
|
||||||
|
Plasma::Corona *corona = qobject_cast<Plasma::Corona*>(scene());
|
||||||
|
if (corona) {
|
||||||
|
corona->requestConfigSync();
|
||||||
|
} else {
|
||||||
|
KGlobal::config()->sync();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int View::id() const
|
int View::id() const
|
||||||
{
|
{
|
||||||
return d->viewId;
|
return d->viewId;
|
||||||
|
Loading…
Reference in New Issue
Block a user