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