set AutoDefault to false on Curve Settings Push Buttons

To enable filter syntax checking on Enter
Partially reverts 43ed80d547
Fixes #3202
This commit is contained in:
Ale Martinez
2019-10-29 11:50:55 -03:00
parent b236c76976
commit a3dc4bca2d

View File

@@ -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);