mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 03:10:02 +02:00
replace lostFocus with editingFinished for QT
This commit is contained in:
parent
c4b8c6385f
commit
a1831c38ed
@ -137,13 +137,13 @@ void SlsQtNumberEntry::SetupNumberField(int type, int which_number_field){
|
|||||||
num_field[i]->setAlignment(Qt::AlignRight);
|
num_field[i]->setAlignment(Qt::AlignRight);
|
||||||
|
|
||||||
if(i==0){
|
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(returnPressed()),this,SLOT(FirstValueEntered()));
|
||||||
connect(num_field[i],SIGNAL(lostFocus()),this,SLOT(FirstValueEntered()));
|
connect(num_field[i],SIGNAL(editingFinished()),this,SLOT(FirstValueEntered()));
|
||||||
}else{
|
}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(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){
|
}else if(type==3){
|
||||||
spin_box[i] = new QSpinBox();
|
spin_box[i] = new QSpinBox();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user