518 elif alignment == Qt.AlignmentFlag.AlignBottom: |
518 elif alignment == Qt.AlignmentFlag.AlignBottom: |
519 if amount is None or rect.y() + rect.height() > amount: |
519 if amount is None or rect.y() + rect.height() > amount: |
520 amount = rect.y() + rect.height() |
520 amount = rect.y() + rect.height() |
521 index = i |
521 index = i |
522 elif alignment == Qt.AlignmentFlag.AlignVCenter: |
522 elif alignment == Qt.AlignmentFlag.AlignVCenter: |
|
523 # __IGNORE_WARNING_Y102__ |
523 if amount is None or rect.height() > amount: |
524 if amount is None or rect.height() > amount: |
524 amount = rect.height() |
525 amount = rect.height() |
525 index = i |
526 index = i |
526 rect = items[index].sceneBoundingRect() |
527 rect = items[index].sceneBoundingRect() |
527 |
528 |