Disabled context menu for text input in register inspection window
This commit is contained in:
@@ -123,6 +123,8 @@ TargetRegisterInspectorWindow::TargetRegisterInspectorWindow(
|
|||||||
);
|
);
|
||||||
|
|
||||||
this->registerValueTextInput->setFixedWidth(BitsetWidget::WIDTH * 2);
|
this->registerValueTextInput->setFixedWidth(BitsetWidget::WIDTH * 2);
|
||||||
|
this->registerValueTextInput->setContextMenuPolicy(Qt::NoContextMenu);
|
||||||
|
|
||||||
if (!this->registerDescriptor.writable) {
|
if (!this->registerDescriptor.writable) {
|
||||||
this->registerValueTextInput->setDisabled(true);
|
this->registerValueTextInput->setDisabled(true);
|
||||||
this->applyButton->setVisible(false);
|
this->applyButton->setVisible(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user