* immutability is handled by the applet
* Applet::isImmutable already checks for Corona immutability * vertical means y, not x ..*sigh* svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758173
This commit is contained in:
parent
500e305b65
commit
033f1f52b3
@ -59,7 +59,6 @@ public:
|
|||||||
formFactor(Planar),
|
formFactor(Planar),
|
||||||
location(Floating),
|
location(Floating),
|
||||||
screen(-1),
|
screen(-1),
|
||||||
immutable(false),
|
|
||||||
toolbox(0),
|
toolbox(0),
|
||||||
type(Containment::NoContainmentType)
|
type(Containment::NoContainmentType)
|
||||||
{
|
{
|
||||||
@ -87,7 +86,6 @@ public:
|
|||||||
Applet::List applets;
|
Applet::List applets;
|
||||||
QMap<Applet*, AppletHandle*> handles;
|
QMap<Applet*, AppletHandle*> handles;
|
||||||
int screen;
|
int screen;
|
||||||
bool immutable;
|
|
||||||
DesktopToolbox *toolbox;
|
DesktopToolbox *toolbox;
|
||||||
Containment::Type type;
|
Containment::Type type;
|
||||||
};
|
};
|
||||||
@ -677,7 +675,7 @@ void Containment::setScreen(int screen)
|
|||||||
//kDebug() << "we are a panel on" << r << ", let's move ourselves to a negative coordinate system" << -(r.x() * 2) - r.height() - INTER_CONTAINMENT_MARGIN;
|
//kDebug() << "we are a panel on" << r << ", let's move ourselves to a negative coordinate system" << -(r.x() * 2) - r.height() - INTER_CONTAINMENT_MARGIN;
|
||||||
// panels are moved into negative coords; we double the x() so that each screen get's
|
// panels are moved into negative coords; we double the x() so that each screen get's
|
||||||
// it's own area for panels
|
// it's own area for panels
|
||||||
int vertOffset = (r.x() * 2) + r.height() + INTER_CONTAINMENT_MARGIN;
|
int vertOffset = (r.y() * 2) + r.height() + INTER_CONTAINMENT_MARGIN;
|
||||||
translate(0, -vertOffset);
|
translate(0, -vertOffset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -796,8 +794,8 @@ bool Containment::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
|
|||||||
|
|
||||||
switch (event->type()) {
|
switch (event->type()) {
|
||||||
case QEvent::GraphicsSceneHoverEnter:
|
case QEvent::GraphicsSceneHoverEnter:
|
||||||
//kDebug() << "got hoverenterEvent" << d->immutable << " " << applet->isImmutable();
|
//kDebug() << "got hoverenterEvent" << isImmutable << " " << applet->isImmutable();
|
||||||
if (!d->immutable && !applet->isImmutable() && !corona()->isImmutable() && !d->handles.contains(applet)) {
|
if (!isImmutable() && !applet->isImmutable() && !d->handles.contains(applet)) {
|
||||||
//kDebug() << "generated applet handle";
|
//kDebug() << "generated applet handle";
|
||||||
//TODO: there should be a small delay on showing these. they pop up too quickly/easily
|
//TODO: there should be a small delay on showing these. they pop up too quickly/easily
|
||||||
// right now
|
// right now
|
||||||
|
Loading…
Reference in New Issue
Block a user