equal
deleted
inserted
replaced
526 QSizeF QGraphicsLinearLayout::sizeHint(Qt::SizeHint which, const QSizeF &constraint) const |
526 QSizeF QGraphicsLinearLayout::sizeHint(Qt::SizeHint which, const QSizeF &constraint) const |
527 { |
527 { |
528 Q_D(const QGraphicsLinearLayout); |
528 Q_D(const QGraphicsLinearLayout); |
529 qreal left, top, right, bottom; |
529 qreal left, top, right, bottom; |
530 getContentsMargins(&left, &top, &right, &bottom); |
530 getContentsMargins(&left, &top, &right, &bottom); |
531 return d->engine.sizeHint(d->styleInfo(), which , constraint) + QSizeF(left + right, top + bottom); |
531 const QSizeF extraMargins(left + right, top + bottom); |
|
532 return d->engine.sizeHint(d->styleInfo(), which , constraint - extraMargins) + extraMargins; |
532 } |
533 } |
533 |
534 |
534 /*! |
535 /*! |
535 \reimp |
536 \reimp |
536 */ |
537 */ |