| 85 | } |
| 86 | |
| 87 | void TransactionItemView::slotItemCompleted(TransactionItem* item) |
| 88 | { |
| 89 | // If completed item is the first, hide separator line for the one that will become first now |
| 90 | if (mBigBox->layout()->indexOf(item) == 0) { |
| 91 | auto *secondItem = mBigBox->layout()->itemAt(1); |
| 92 | if (secondItem) { |
| 93 | static_cast<TransactionItem *>(secondItem->widget())->hideHLine(); |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | mBigBox->layout()->removeWidget(item); |
| 98 | delete item; |
| 99 | |
| 100 | //This slot is called whenever a TransactionItem is deleted, so this is a |
| 101 | //good place to call updateGeometry(), so our parent takes the new size |
| 102 | //into account and resizes. |
| 103 | updateGeometry(); |
| 104 | } |
| 105 | |
| 106 | // ---------------------------------------------------------------------------- |
| 107 |
no test coverage detected