From a1831c38ed182788045011fe00a9dd9eea67525b Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Fri, 18 May 2018 17:05:35 +0200 Subject: [PATCH] replace lostFocus with editingFinished for QT --- .../slsDetectorPlotting/src/SlsQtNumberEntry.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slsDetectorGui/slsDetectorPlotting/src/SlsQtNumberEntry.cxx b/slsDetectorGui/slsDetectorPlotting/src/SlsQtNumberEntry.cxx index 13a44e35f..7d061bbbf 100644 --- a/slsDetectorGui/slsDetectorPlotting/src/SlsQtNumberEntry.cxx +++ b/slsDetectorGui/slsDetectorPlotting/src/SlsQtNumberEntry.cxx @@ -137,13 +137,13 @@ void SlsQtNumberEntry::SetupNumberField(int type, int which_number_field){ num_field[i]->setAlignment(Qt::AlignRight); if(i==0){ - connect(num_field[i],SIGNAL(lostFocus()),this,SLOT(RefreshFirstNumberEntry())); + connect(num_field[i],SIGNAL(editingFinished()),this,SLOT(RefreshFirstNumberEntry())); connect(num_field[i],SIGNAL(returnPressed()),this,SLOT(FirstValueEntered())); - connect(num_field[i],SIGNAL(lostFocus()),this,SLOT(FirstValueEntered())); + connect(num_field[i],SIGNAL(editingFinished()),this,SLOT(FirstValueEntered())); }else{ - connect(num_field[i],SIGNAL(lostFocus()),this,SLOT(RefreshSecondNumberEntry())); + connect(num_field[i],SIGNAL(editingFinished()),this,SLOT(RefreshSecondNumberEntry())); connect(num_field[i],SIGNAL(returnPressed()),this,SLOT(SecondValueEntered())); - connect(num_field[i],SIGNAL(lostFocus()),this,SLOT(SecondValueEntered())); + connect(num_field[i],SIGNAL(editingFinished()),this,SLOT(SecondValueEntered())); } }else if(type==3){ spin_box[i] = new QSpinBox();