Skip to content

Commit

Permalink
Fix interaction mode for non-read-only Expressions editor. (#19916)
Browse files Browse the repository at this point in the history
  • Loading branch information
biagas authored Oct 18, 2024
1 parent 91be9bf commit e041cf7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/QvisExpressionsWindow.C
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,10 @@ QvisExpressionsWindow::CreateStandardEditor()
// Creation: Fri Aug 23 10:00:47 PDT 2024
//
// Modifications:
// Kathleen Biags, Fri Oct 18, 2024
// Set the non-read-only Interaction flags to Qt::TextEditorInteraction,
// Qt docs state it is the default for a text editor and is the same as
// Qt::TextEditable | Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard.
//
// ****************************************************************************

Expand All @@ -767,7 +771,7 @@ QvisExpressionsWindow::SetStandardEditorReadOnly(bool read_only)
{
nameEditLabel->setText(tr("Name"));
nameEdit->setReadOnly(false);
stdDefinitionEdit->setTextInteractionFlags(Qt::TextEditable);
stdDefinitionEdit->setTextInteractionFlags(Qt::TextEditorInteraction);
stdDefinitionEditLabel->setText(tr("Definition"));
}

Expand Down

0 comments on commit e041cf7

Please sign in to comment.