added setTrackContainmentChanges to view. necesarry for improved drag&drop visualisation.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=802187
This commit is contained in:
Rob Scheepmaker 2008-04-28 19:14:28 +00:00
parent 78ef3e466c
commit 78bfa23fac
2 changed files with 14 additions and 1 deletions

View File

@ -35,6 +35,7 @@ class View::Private
public:
Private(View *view, int uniqueId)
: drawWallpaper(true),
trackChanges(true),
desktop(-1),
containment(0),
q(view)
@ -54,7 +55,7 @@ public:
void updateSceneRect()
{
if (!containment) {
if (!containment || !trackChanges) {
return;
}
@ -81,6 +82,7 @@ public:
}
bool drawWallpaper;
bool trackChanges;
int desktop;
int viewId;
Plasma::Containment *containment;

11
view.h
View File

@ -124,6 +124,17 @@ public:
*/
Containment* containment() const;
/**
* Surpress the default behavior where the view tracks changes to the
* containment, and adapts itself to it.
*/
void setTrackContainmentChanges(bool trackChanges);
/**
* @return whether or not the view tracks changes to the containment
*/
bool trackContainmentChanges();
/**
* @return the id of the View set in the constructor
*/