From 4419fa0336e15d1a2e8ff615ba5ef2d1a208707f Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 2 Mar 2009 13:14:58 +0000 Subject: [PATCH] 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 --- private/desktoptoolbox.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/private/desktoptoolbox.cpp b/private/desktoptoolbox.cpp index c1cf49c34..1a0caf36f 100644 --- a/private/desktoptoolbox.cpp +++ b/private/desktoptoolbox.cpp @@ -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; }