MCPcopy Create free account
hub / github.com/MITK/MITK / setEnabled

Method setEnabled

Modules/QtWidgetsExt/src/QmitkBoundingObjectWidget.cpp:98–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void QmitkBoundingObjectWidget::setEnabled(bool flag)
99{
100 ItemNodeMapType::iterator it = m_ItemNodeMap.begin();
101 while (it != m_ItemNodeMap.end())
102 {
103 mitk::DataNode *node = it->second;
104 QTreeWidgetItem *item = it->first;
105
106 if (flag)
107 node->SetVisibility(item->checkState(2));
108 else
109 node->SetVisibility(flag);
110 ++it;
111 }
112
113 QWidget::setEnabled(flag);
114 mitk::RenderingManager::GetInstance()->RequestUpdateAll();
115}
116
117void QmitkBoundingObjectWidget::SelectionChanged()
118{

Callers 15

SetCurrentSelectionMethod · 0.45
OnPropertyModifiedMethod · 0.45
InitializeMethod · 0.45
ctxMenuMethod · 0.45
EnableEditButtonMethod · 0.45
ObserveNewNodeMethod · 0.45
OnNodeDeletedMethod · 0.45

Calls 5

checkStateMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
SetVisibilityMethod · 0.45
RequestUpdateAllMethod · 0.45

Tested by

no test coverage detected