disable the clipping hack
svn path=/trunk/KDE/kdelibs/; revision=1038652
This commit is contained in:
parent
7423a261dd
commit
637a50e17c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user