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:
parent
78ef3e466c
commit
78bfa23fac
4
view.cpp
4
view.cpp
@ -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
11
view.h
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user