From a3dc4bca2d178f2f225ee43e8a0fdf52c6164dec Mon Sep 17 00:00:00 2001 From: Ale Martinez Date: Tue, 29 Oct 2019 11:50:55 -0300 Subject: [PATCH] set AutoDefault to false on Curve Settings Push Buttons To enable filter syntax checking on Enter Partially reverts 43ed80d547a9f3ace578e17b41fdb043bc5dfd5f Fixes #3202 --- src/Charts/LTMTool.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Charts/LTMTool.cpp b/src/Charts/LTMTool.cpp index b338b20ce..79294db92 100644 --- a/src/Charts/LTMTool.cpp +++ b/src/Charts/LTMTool.cpp @@ -156,7 +156,6 @@ LTMTool::LTMTool(Context *context, LTMSettings *settings) : QWidget(context->mai presetLayout->addWidget(charts, 0,0); applyButton = new QPushButton(tr("Apply")); // connected in LTMWindow.cpp (weird!?) - applyButton->setDefault(true); newButton = new QPushButton(tr("Add Current")); connect(newButton, SIGNAL(clicked()), this, SLOT(addCurrent())); @@ -2097,6 +2096,7 @@ EditMetricDetailDialog::EditMetricDetailDialog(Context *context, LTMTool *ltmToo QLabel *color = new QLabel(tr("Color")); curveColor = new QPushButton(this); + curveColor->setAutoDefault(false); QLabel *fill = new QLabel(tr("Fill curve")); fillCurve = new QCheckBox("", this); @@ -2195,8 +2195,9 @@ EditMetricDetailDialog::EditMetricDetailDialog(Context *context, LTMTool *ltmToo QHBoxLayout *buttonLayout = new QHBoxLayout; buttonLayout->addStretch(); applyButton = new QPushButton(tr("&OK"), this); - applyButton->setDefault(true); + applyButton->setAutoDefault(false); cancelButton = new QPushButton(tr("&Cancel"), this); + cancelButton->setAutoDefault(false); buttonLayout->addWidget(cancelButton); buttonLayout->addWidget(applyButton); mainLayout->addLayout(buttonLayout);