qgraphicsgridlayoutengine.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/widgets/graphicsview/qgraphicsgridlayoutengine.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7bool QGraphicsGridLayoutEngineItem::isHidden() const-
8{-
9 if (QGraphicsItem *item = q_layoutItem->graphicsItem()
QGraphicsItem ...graphicsItem()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
10 return
never executed: return QGraphicsItemPrivate::get(item)->explicitlyHidden;
QGraphicsItemPrivate::get(item)->explicitlyHidden;
never executed: return QGraphicsItemPrivate::get(item)->explicitlyHidden;
0
11 return
never executed: return false;
false;
never executed: return false;
0
12}-
13bool QGraphicsGridLayoutEngineItem::isIgnored() const-
14{-
15 return
never executed: return isHidden() && !q_layoutItem->sizePolicy().retainSizeWhenHidden();
isHidden() && !q_layoutItem->sizePolicy().retainSizeWhenHidden();
never executed: return isHidden() && !q_layoutItem->sizePolicy().retainSizeWhenHidden();
0
16}-
17-
18-
19-
20-
21-
22bool QGraphicsGridLayoutEngineItem::hasDynamicConstraint() const-
23{-
24 return
never executed: return QGraphicsLayoutItemPrivate::get(q_layoutItem)->hasHeightForWidth() || QGraphicsLayoutItemPrivate::get(q_layoutItem)->hasWidthForHeight();
QGraphicsLayoutItemPrivate::get(q_layoutItem)->hasHeightForWidth()
never executed: return QGraphicsLayoutItemPrivate::get(q_layoutItem)->hasHeightForWidth() || QGraphicsLayoutItemPrivate::get(q_layoutItem)->hasWidthForHeight();
0
25 || QGraphicsLayoutItemPrivate::get(q_layoutItem)->hasWidthForHeight();
never executed: return QGraphicsLayoutItemPrivate::get(q_layoutItem)->hasHeightForWidth() || QGraphicsLayoutItemPrivate::get(q_layoutItem)->hasWidthForHeight();
0
26}-
27-
28Qt::Orientation QGraphicsGridLayoutEngineItem::dynamicConstraintOrientation() const-
29{-
30 if (QGraphicsLayoutItemPrivate::get(q_layoutItem)->hasHeightForWidth()
QGraphicsLayou...ightForWidth()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
31 return
never executed: return Qt::Vertical;
Qt::Vertical;
never executed: return Qt::Vertical;
0
32 else-
33 return
never executed: return Qt::Horizontal;
Qt::Horizontal;
never executed: return Qt::Horizontal;
0
34}-
35-
36-
37void QGraphicsGridLayoutEngine::setAlignment(QGraphicsLayoutItem *graphicsLayoutItem, Qt::Alignment alignment)-
38{-
39 if (QGraphicsGridLayoutEngineItem *gridEngineItem = findLayoutItem(graphicsLayoutItem)
QGraphicsGridL...icsLayoutItem)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
40 gridEngineItem->setAlignment(alignment);-
41 invalidate();-
42 }
never executed: end of block
0
43}
never executed: end of block
0
44-
45Qt::Alignment QGraphicsGridLayoutEngine::alignment(QGraphicsLayoutItem *graphicsLayoutItem) const-
46{-
47 if (QGraphicsGridLayoutEngineItem *gridEngineItem = findLayoutItem(graphicsLayoutItem)
QGraphicsGridL...icsLayoutItem)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
48 return
never executed: return gridEngineItem->alignment();
gridEngineItem->alignment();
never executed: return gridEngineItem->alignment();
0
49 return
never executed: return 0;
0;
never executed: return 0;
0
50}-
51-
52-
53void QGraphicsGridLayoutEngine::setStretchFactor(QGraphicsLayoutItem *layoutItem, int stretch,-
54 Qt::Orientation orientation)-
55{-
56 ((!(stretch >= 0)) ? qt_assert("stretch >= 0",__FILE__,108) : qt_noop());-
57-
58 if (QGraphicsGridLayoutEngineItem *item = findLayoutItem(layoutItem)
QGraphicsGridL...em(layoutItem)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
59 item->setStretchFactor(stretch, orientation);
never executed: item->setStretchFactor(stretch, orientation);
0
60}
never executed: end of block
0
61-
62int QGraphicsGridLayoutEngine::stretchFactor(QGraphicsLayoutItem *layoutItem, Qt::Orientation orientation) const-
63{-
64 if (QGraphicsGridLayoutEngineItem *item = findLayoutItem(layoutItem)
QGraphicsGridL...em(layoutItem)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
65 return
never executed: return item->stretchFactor(orientation);
item->stretchFactor(orientation);
never executed: return item->stretchFactor(orientation);
0
66 return
never executed: return 0;
0;
never executed: return 0;
0
67}-
68-
69-
70-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9