Commit 18589100 authored by Mathieu Faverge's avatar Mathieu Faverge

Apply patch 4 from issue #13 - Incorrect emit

parent 8bb81a24
......@@ -174,7 +174,7 @@ void Interval_select::minSpinBoxValueChanged( double value )
interval_slider->setLowerValue( int(position) );
interval_slider->blockSignals(v);
emit( minValueChanged( minSpinBox->value() ) );
emit minValueChanged( minSpinBox->value() );
myPalette.setColor(QPalette::Active, QPalette::Text, Qt::black);
myPalette.setColor(QPalette::Active, QPalette::HighlightedText, Qt::white);
......@@ -209,7 +209,7 @@ void Interval_select::maxSpinBoxValueChanged( double value )
interval_slider->setLowerValue( int(position) );
interval_slider->blockSignals(v);
emit( maxValueChanged( maxSpinBox->value() ) );
emit maxValueChanged( maxSpinBox->value() );
myPalette.setColor(QPalette::Active, QPalette::Text, Qt::black);
myPalette.setColor(QPalette::Active, QPalette::HighlightedText, Qt::white);
......@@ -237,7 +237,7 @@ void Interval_select::minSliderValueChanged( int _value )
bool v = minSpinBox->blockSignals(true);
minSpinBox->setValue( _value *(_trace->get_max_date() - minSpinBox->minimum())/(interval_slider->maximum() - interval_slider->minimum()));
minSpinBox->blockSignals(v);
emit( minValueChanged( minSpinBox->value() ) );
emit minValueChanged( minSpinBox->value() );
if(_auto_refresh)apply_settings();
}
_applied = false;
......@@ -250,7 +250,7 @@ void Interval_select::maxSliderValueChanged( int _value )
bool v = maxSpinBox->blockSignals(true);
maxSpinBox->setValue( _value * (_trace->get_max_date() - maxSpinBox->minimum())/(interval_slider->maximum() - interval_slider->minimum()));
maxSpinBox->blockSignals(v);
emit( maxValueChanged( maxSpinBox->value() ) );
emit maxValueChanged( maxSpinBox->value() );
if(_auto_refresh)apply_settings();
}
_applied = false;
......
......@@ -164,7 +164,7 @@ int PajeFileManager::get_line(PajeLine *lineptr) {
while ( ( i < _filesize) && (_line[i] != '\'')) {
i++;
}
if((i==_filesize)){
if(i==_filesize){
setstate(ifstream::eofbit);
throw "Overflow";
return -1;
......@@ -200,7 +200,7 @@ int PajeFileManager::get_line(PajeLine *lineptr) {
itks++;
_tokens[itks] = &_line[i+1];
}
if((i==_filesize)){
if(i==_filesize){
setstate(ifstream::eofbit);
throw "Overflow";
return -1;
......@@ -215,7 +215,7 @@ int PajeFileManager::get_line(PajeLine *lineptr) {
_line[i] = '\0';
i++;
}
if((i==_filesize)){
if(i==_filesize){
setstate(ifstream::eofbit);
throw "Overflow";
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment