MCPcopy Create free account
hub / github.com/KDE/kdevelop / slotItemCompleted

Method slotItemCompleted

kdevplatform/shell/progresswidget/progressdialog.cpp:87–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void 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

Callers 1

Calls 5

itemAtMethod · 0.80
hideHLineMethod · 0.80
removeWidgetMethod · 0.80
indexOfMethod · 0.45
widgetMethod · 0.45

Tested by

no test coverage detected