disable the clipping hack

svn path=/trunk/KDE/kdelibs/; revision=1038652
This commit is contained in:
Marco Martin 2009-10-21 15:01:06 +00:00
parent 7423a261dd
commit 637a50e17c

View File

@ -175,18 +175,9 @@ public:
void adjustClipping()
{
/* FIXME: it should really be like this:
* const bool clip = widget->size().width() > scrollingWidget->size().width() ||
* widget->size().height() > scrollingWidget->size().height();
*
* scrollingWidget->setFlag(QGraphicsItem::ItemClipsChildrenToShape, clip);
*
* however, a qt bug prevents this to work properly when toggling this flag,
* so we have to keep the children items always clipped (performance--)
* until the bug is fixed.
*/
const bool clip = widget->size().width() > scrollingWidget->size().width() || widget->size().height() > scrollingWidget->size().height();
scrollingWidget->setFlag(QGraphicsItem::ItemClipsChildrenToShape, true);
scrollingWidget->setFlag(QGraphicsItem::ItemClipsChildrenToShape, clip);
}
void makeRectVisible()