set ignoretransfprms only when in toolbar mode, this works around a qt
bug where the input gets killed on widgets with clipchildrentoshape when there is an ignoretransformations one and makes the thing look better when there is another view zoomed out (like magnifique plasmoid) svn path=/trunk/KDE/kdelibs/; revision=934137
This commit is contained in:
parent
a0194765cb
commit
4419fa0336
@ -175,8 +175,7 @@ DesktopToolBox::DesktopToolBox(Containment *parent)
|
||||
{
|
||||
d->containment = parent;
|
||||
setZValue(10000000);
|
||||
setFlag(ItemClipsChildrenToShape, false);
|
||||
setFlag(ItemIgnoresTransformations, true);
|
||||
|
||||
setIsMovable(true);
|
||||
assignColors();
|
||||
|
||||
@ -359,6 +358,8 @@ void DesktopToolBox::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
||||
|
||||
void DesktopToolBox::showToolBox()
|
||||
{
|
||||
setFlag(ItemIgnoresTransformations, isToolbar());
|
||||
|
||||
if (showing() && !isToolbar()) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user