Materials: Disable editor right click menu

The right click context menu in the materials editor was implemented
as a place holder but is currently non-functional. It should be
disabled for 1.0. This will be revisited post 1.0 as all editor
functionality is reviewed and improved.

Fixes #17110
This commit is contained in:
David Carter
2024-10-31 20:25:42 -04:00
committed by Yorik van Havre
parent 617d730c9f
commit 5e1f1ff257

View File

@@ -161,11 +161,14 @@ void MaterialsEditor::setup()
&MaterialsEditor::onSelectMaterial);
connect(ui->treeMaterials, &QTreeView::doubleClicked, this, &MaterialsEditor::onDoubleClick);
// Disabled for now. This will be revisited post 1.0
#if 0
ui->treeMaterials->setContextMenuPolicy(Qt::CustomContextMenu);
connect(ui->treeMaterials,
&QWidget::customContextMenuRequested,
this,
&MaterialsEditor::onContextMenu);
#endif
}
void MaterialsEditor::getFavorites()