Disabled context menu for text input in register inspection window

This commit is contained in:
Nav
2021-11-02 23:49:21 +00:00
parent 82016959c8
commit dd4d3a427b

View File

@@ -123,6 +123,8 @@ TargetRegisterInspectorWindow::TargetRegisterInspectorWindow(
);
this->registerValueTextInput->setFixedWidth(BitsetWidget::WIDTH * 2);
this->registerValueTextInput->setContextMenuPolicy(Qt::NoContextMenu);
if (!this->registerDescriptor.writable) {
this->registerValueTextInput->setDisabled(true);
this->applyButton->setVisible(false);