Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/corona.cpp
Show First 20 Lines • Show All 374 Lines • ▼ Show 20 Line(s) | 354 | #endif | |||
---|---|---|---|---|---|
375 | if (d->immutability != Types::SystemImmutable) { | 375 | if (d->immutability != Types::SystemImmutable) { | ||
376 | KConfigGroup cg(config(), "General"); | 376 | KConfigGroup cg(config(), "General"); | ||
377 | 377 | | |||
378 | // we call the dptr member directly for locked since isImmutable() | 378 | // we call the dptr member directly for locked since isImmutable() | ||
379 | // also checks kiosk and parent containers | 379 | // also checks kiosk and parent containers | ||
380 | cg.writeEntry("immutability", (int)d->immutability); | 380 | cg.writeEntry("immutability", (int)d->immutability); | ||
381 | requestConfigSync(); | 381 | requestConfigSync(); | ||
382 | } | 382 | } | ||
383 | | ||||
384 | if (d->immutability != Types::Mutable) { | ||||
385 | d->editMode = false; | ||||
386 | emit editModeChanged(); | ||||
387 | } | ||||
388 | } | ||||
389 | | ||||
390 | void Corona::setEditMode(bool edit) | ||||
391 | { | ||||
392 | if (d->immutability != Plasma::Types::Mutable || edit == d->editMode) { | ||||
393 | return; | ||||
394 | } | ||||
395 | | ||||
396 | d->editMode = edit; | ||||
397 | emit editModeChanged(); | ||||
398 | } | ||||
399 | | ||||
400 | bool Corona::isEditMode() const | ||||
401 | { | ||||
402 | return d->editMode; | ||||
383 | } | 403 | } | ||
384 | 404 | | |||
385 | QList<Plasma::Types::Location> Corona::freeEdges(int screen) const | 405 | QList<Plasma::Types::Location> Corona::freeEdges(int screen) const | ||
386 | { | 406 | { | ||
387 | QList<Plasma::Types::Location> freeEdges; | 407 | QList<Plasma::Types::Location> freeEdges; | ||
388 | freeEdges << Plasma::Types::TopEdge << Plasma::Types::BottomEdge | 408 | freeEdges << Plasma::Types::TopEdge << Plasma::Types::BottomEdge | ||
389 | << Plasma::Types::LeftEdge << Plasma::Types::RightEdge; | 409 | << Plasma::Types::LeftEdge << Plasma::Types::RightEdge; | ||
390 | 410 | | |||
▲ Show 20 Lines • Show All 288 Lines • Show Last 20 Lines |