Exemplo n.º 1
0
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();
}
Exemplo n.º 2
0
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();
}
Exemplo n.º 3
0
void UIHexEditor::setProc( UIDebugCPU::PROCTYPE proc )
{
    this->proc = proc;
    rebuildTabs();
}
Exemplo n.º 4
0
UIHexEditor::UIHexEditor( QWidget* p )
{
    proc = UIDebugCPU::PROC_MSH2;
    rebuildTabs();
}