void PropertyWindow::changeSelection() { _sceneTree->blockSignals(true); _sceneTree->clearSelection(); for (const Primitive *p : _selection) { auto iter = _primToItem.find(p); if (iter != _primToItem.end()) iter->second->setSelected(true); } _sceneTree->blockSignals(false); rebuildTabs(); }
void PropertyWindow::treeSelectionChanged() { if (!_scene) return; _selection.clear(); for (QTreeWidgetItem *i : _sceneTree->selectedItems()) { auto iter = _itemToPrim.find(i); if (iter != _itemToPrim.end()) _selection.insert(iter->second); } rebuildTabs(); emit selectionChanged(); }
void UIHexEditor::setProc( UIDebugCPU::PROCTYPE proc ) { this->proc = proc; rebuildTabs(); }
UIHexEditor::UIHexEditor( QWidget* p ) { proc = UIDebugCPU::PROC_MSH2; rebuildTabs(); }