diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-12 18:43:25 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-08-14 17:30:02 +0900 |
commit | 37409e179fd0a260e6b2bc5914c460f16983e250 (patch) | |
tree | afb148fb8950e9aec6bdb3969c100f4ff6693695 | |
parent | 75d73ad5ac5048e338bfe2e08450dc888e91be8e (diff) | |
download | soundkonverter-37409e179fd0a260e6b2bc5914c460f16983e250.tar.gz soundkonverter-37409e179fd0a260e6b2bc5914c460f16983e250.zip |
Drop TQT_BASE_OBJECT* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 6fc28bc81f64a2244d2f515f7837a59e94da1b9e)
-rw-r--r-- | src/configbackendspage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configbackendspage.cpp b/src/configbackendspage.cpp index 6abef08..deadb60 100644 --- a/src/configbackendspage.cpp +++ b/src/configbackendspage.cpp @@ -415,8 +415,8 @@ void ConfigBackendsPage::encoderChanged() TQString encoder = (*a).cEncoder->currentText(); 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; - else if( !TQT_BASE_OBJECT_NAME::sender() ) recalc = true; + if( sender() && (*a).format == sender()->name() ) recalc = true; + else if( !sender() ) recalc = true; else recalc = false; if( (*b)->enc.bin == encoder && (*b)->enc.strength.enabled ) { (*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->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 ) (*a).sStrength->setValue( (*b)->enc.strength.default_value / (*b)->enc.strength.step ); else (*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->show(); |