]> git.pld-linux.org Git - packages/qt4.git/blob - 0285-qgv-dontshowchildren.diff
- up to 4.5.2
[packages/qt4.git] / 0285-qgv-dontshowchildren.diff
1 qt-bugs@ issue : unknows
2 Qt Software task ID : 197802
3 bugs.kde.org number : bugs on the issue not reported yed
4 applied: no
5 author: Marco Martin <notmart@gmail.com>
6
7 This patch makes children items of an hidden qgraphicsitem not be shown if show() is called on them. fixes several issues like the opensocial plasma widget and the Plasma desktop toolbox behaviour.
8
9 Index: src/gui/graphicsview/qgraphicsitem.cpp
10 ===================================================================
11 --- src/gui/graphicsview/qgraphicsitem.cpp      (revision 958522)
12 +++ src/gui/graphicsview/qgraphicsitem.cpp      (working copy)
13 @@ -1522,6 +1522,11 @@
14      if (visible == quint32(newVisible))
15          return;
16  
17 +    QGraphicsItem *parent(q_ptr->parentItem());
18 +    if (parent && newVisible && !parent->d_ptr->visible) {
19 +        return;
20 +    }
21 +
22      // Modify the property.
23      const QVariant newVisibleVariant(q_ptr->itemChange(QGraphicsItem::ItemVisibleChange,
24                                                         quint32(newVisible)));
This page took 0.047522 seconds and 3 git commands to generate.