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

Method removeAction

kdevplatform/sublime/idealbuttonbarwidget.cpp:437–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437void IdealButtonBarWidget::removeAction(QAction* widgetAction)
438{
439 const QScopeGuard emptyChangedGuard([this] {
440 if (isEmpty()) {
441 emit emptyChanged();
442 }
443 });
444
445 QWidget::removeAction(widgetAction);
446
447 auto* const action = qobject_cast<ToolViewAction*>(widgetAction);
448 if (!action) {
449 return;
450 }
451
452 m_lastCheckedActionsTracker->aboutToDestroy(action);
453 delete action->button();
454 delete action;
455}
456
457bool IdealButtonBarWidget::isEmpty() const
458{

Callers 10

deleteSessionMethod · 0.80
cleanContextMenuMethod · 0.80
dockLocationChangedMethod · 0.80
removeViewMethod · 0.80
createPopupMenuMethod · 0.80
showNextMessageMethod · 0.80
contextMenuEventMethod · 0.80
fillContextMenuMethod · 0.80

Calls 3

aboutToDestroyMethod · 0.80
buttonMethod · 0.80
isEmptyFunction · 0.50

Tested by

no test coverage detected