|
|
@ -415,8 +415,8 @@ void ConfigBackendsPage::encoderChanged()
|
|
|
|
TQString encoder = (*a).cEncoder->currentText();
|
|
|
|
TQString encoder = (*a).cEncoder->currentText();
|
|
|
|
|
|
|
|
|
|
|
|
for( TQValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
|
|
|
|
for( TQValueList<ConvertPlugin*>::Iterator b = formatItem->encoders.begin(); b != formatItem->encoders.end(); ++b ) {
|
|
|
|
if( TQT_BASE_OBJECT_NAME::sender() && (*a).format == TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>((TQT_BASE_OBJECT_NAME::sender())))->name() ) recalc = true;
|
|
|
|
if( sender() && (*a).format == sender()->name() ) recalc = true;
|
|
|
|
else if( !TQT_BASE_OBJECT_NAME::sender() ) recalc = true;
|
|
|
|
else if( !sender() ) recalc = true;
|
|
|
|
else recalc = false;
|
|
|
|
else recalc = false;
|
|
|
|
if( (*b)->enc.bin == encoder && (*b)->enc.strength.enabled ) {
|
|
|
|
if( (*b)->enc.bin == encoder && (*b)->enc.strength.enabled ) {
|
|
|
|
(*a).lStrength->show();
|
|
|
|
(*a).lStrength->show();
|
|
|
@ -429,13 +429,13 @@ void ConfigBackendsPage::encoderChanged()
|
|
|
|
(*a).sStrength->setMaxValue( (int)((*b)->enc.strength.range_min/(*b)->enc.strength.step) );
|
|
|
|
(*a).sStrength->setMaxValue( (int)((*b)->enc.strength.range_min/(*b)->enc.strength.step) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
(*a).sStrength->setPageStep( 1 );
|
|
|
|
(*a).sStrength->setPageStep( 1 );
|
|
|
|
if( TQT_BASE_OBJECT_NAME::sender() && (*a).format == TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(TQT_BASE_OBJECT_NAME::sender()))->name() ) {
|
|
|
|
if( sender() && (*a).format == sender()->name() ) {
|
|
|
|
if( (*b)->enc.strength.range_max >= (*b)->enc.strength.range_min )
|
|
|
|
if( (*b)->enc.strength.range_max >= (*b)->enc.strength.range_min )
|
|
|
|
(*a).sStrength->setValue( (*b)->enc.strength.default_value / (*b)->enc.strength.step );
|
|
|
|
(*a).sStrength->setValue( (*b)->enc.strength.default_value / (*b)->enc.strength.step );
|
|
|
|
else
|
|
|
|
else
|
|
|
|
(*a).sStrength->setValue( ( (*b)->enc.strength.range_min - (*b)->enc.strength.default_value ) / (*b)->enc.strength.step );
|
|
|
|
(*a).sStrength->setValue( ( (*b)->enc.strength.range_min - (*b)->enc.strength.default_value ) / (*b)->enc.strength.step );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if( !TQT_BASE_OBJECT_NAME::sender() ) {
|
|
|
|
else if( !sender() ) {
|
|
|
|
(*a).sStrength->setValue( formatItem->compressionLevel );
|
|
|
|
(*a).sStrength->setValue( formatItem->compressionLevel );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
(*a).sStrength->show();
|
|
|
|
(*a).sStrength->show();
|
|
|
|