Drop TQT_BASE_OBJECT* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 32e1827c79)
r14.1.x
Michele Calgaro 9 months ago
parent 54816bc057
commit ca19a0f2b4
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -237,15 +237,15 @@ void NewFOV::paintEvent( TQPaintEvent * ) {
void NewFOV::slotComputeFOV() { void NewFOV::slotComputeFOV() {
//DEBUG //DEBUG
kdDebug() << ":" << TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() << ":" << endl; kdDebug() << ":" << sender()->name() << ":" << endl;
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "ComputeEyeFOV" ) ) kdDebug() << "A" << endl; if ( sender()->name() == TQString( "ComputeEyeFOV" ) ) kdDebug() << "A" << endl;
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "ComputeEyeFOV" ) && ui->TLength1->value() > 0.0 ) kdDebug() << "B" << endl; if ( sender()->name() == TQString( "ComputeEyeFOV" ) && ui->TLength1->value() > 0.0 ) kdDebug() << "B" << endl;
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "ComputeEyeFOV" ) && ui->TLength1->value() > 0.0 ) if ( sender()->name() == TQString( "ComputeEyeFOV" ) && ui->TLength1->value() > 0.0 )
ui->FOVEdit->setText( TDEGlobal::locale()->formatNumber( ui->EyeFOV->value() * ui->EyeLength->value() / ui->TLength1->value() ) ); ui->FOVEdit->setText( TDEGlobal::locale()->formatNumber( ui->EyeFOV->value() * ui->EyeLength->value() / ui->TLength1->value() ) );
else if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "ComputeCameraFOV" ) && ui->TLength2->value() > 0.0 ) else if ( sender()->name() == TQString( "ComputeCameraFOV" ) && ui->TLength2->value() > 0.0 )
ui->FOVEdit->setText( TDEGlobal::locale()->formatNumber( ui->ChipSize->value() * 3438.0 / ui->TLength2->value() ) ); ui->FOVEdit->setText( TDEGlobal::locale()->formatNumber( ui->ChipSize->value() * 3438.0 / ui->TLength2->value() ) );
else if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "ComputeHPBW" ) && ui->RTDiameter->value() > 0.0 && ui->WaveLength->value() > 0.0 ) { else if ( sender()->name() == TQString( "ComputeHPBW" ) && ui->RTDiameter->value() > 0.0 && ui->WaveLength->value() > 0.0 ) {
ui->FOVEdit->setText( TDEGlobal::locale()->formatNumber( 34.34 * 1.2 * ui->WaveLength->value() / ui->RTDiameter->value() ) ); ui->FOVEdit->setText( TDEGlobal::locale()->formatNumber( 34.34 * 1.2 * ui->WaveLength->value() / ui->RTDiameter->value() ) );
// Beam width for an antenna is usually a circle on the sky. // Beam width for an antenna is usually a circle on the sky.
ui->ShapeBox->setCurrentItem(4); ui->ShapeBox->setCurrentItem(4);

@ -93,23 +93,23 @@
void KStars::slotViewToolBar() { void KStars::slotViewToolBar() {
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_stars" ) ) { if ( sender()->name() == TQString( "show_stars" ) ) {
Options::setShowStars( !Options::showStars() ); Options::setShowStars( !Options::showStars() );
} else if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_deepsky" ) ) { } else if ( sender()->name() == TQString( "show_deepsky" ) ) {
Options::setShowDeepSky( ! Options::showDeepSky() ); Options::setShowDeepSky( ! Options::showDeepSky() );
} else if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_planets" ) ) { } else if ( sender()->name() == TQString( "show_planets" ) ) {
Options::setShowPlanets( ! Options::showPlanets() ); Options::setShowPlanets( ! Options::showPlanets() );
} else if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_clines" ) ) { } else if ( sender()->name() == TQString( "show_clines" ) ) {
Options::setShowCLines( !Options::showCLines() ); Options::setShowCLines( !Options::showCLines() );
} else if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_cnames" ) ) { } else if ( sender()->name() == TQString( "show_cnames" ) ) {
Options::setShowCNames( !Options::showCNames() ); Options::setShowCNames( !Options::showCNames() );
} else if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_cbounds" ) ) { } else if ( sender()->name() == TQString( "show_cbounds" ) ) {
Options::setShowCBounds( !Options::showCBounds() ); Options::setShowCBounds( !Options::showCBounds() );
} else if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_mw" ) ) { } else if ( sender()->name() == TQString( "show_mw" ) ) {
Options::setShowMilkyWay( !Options::showMilkyWay() ); Options::setShowMilkyWay( !Options::showMilkyWay() );
} else if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_grid" ) ) { } else if ( sender()->name() == TQString( "show_grid" ) ) {
Options::setShowGrid( !Options::showGrid() ); Options::setShowGrid( !Options::showGrid() );
} else if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_horizon" ) ) { } else if ( sender()->name() == TQString( "show_horizon" ) ) {
Options::setShowGround( !Options::showGround() ); Options::setShowGround( !Options::showGround() );
} }
@ -623,7 +623,7 @@ void KStars::slotToggleTimer() {
//Focus //Focus
void KStars::slotPointFocus() { void KStars::slotPointFocus() {
TQString sentFrom( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() ); TQString sentFrom( sender()->name() );
if ( sentFrom == "zenith" ) if ( sentFrom == "zenith" )
map()->invokeKey( KKey( "Z" ).keyCodeQt() ); map()->invokeKey( KKey( "Z" ).keyCodeQt() );
@ -813,12 +813,12 @@ void KStars::slotCoordSys() {
//Settings Menu: //Settings Menu:
void KStars::slotColorScheme() { void KStars::slotColorScheme() {
//use mid(3) to exclude the leading "cs_" prefix from the action name //use mid(3) to exclude the leading "cs_" prefix from the action name
TQString filename = TQString( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() ).mid(3) + ".colors"; TQString filename = TQString( sender()->name() ).mid(3) + ".colors";
loadColorScheme( filename ); loadColorScheme( filename );
} }
void KStars::slotTargetSymbol() { void KStars::slotTargetSymbol() {
TQString symbolName( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() ); TQString symbolName( sender()->name() );
FOV f( symbolName ); //read data from fov.dat FOV f( symbolName ); //read data from fov.dat
Options::setFOVName( f.name() ); Options::setFOVName( f.name() );
@ -955,24 +955,24 @@ void KStars::slotClearAllTrails() {
//toggle display of GUI Items on/off //toggle display of GUI Items on/off
void KStars::slotShowGUIItem( bool show ) { void KStars::slotShowGUIItem( bool show ) {
//Toolbars //Toolbars
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_mainToolBar" ) ) { if ( sender()->name() == TQString( "show_mainToolBar" ) ) {
Options::setShowMainToolBar( show ); Options::setShowMainToolBar( show );
if ( show ) toolBar( "mainToolBar" )->show(); if ( show ) toolBar( "mainToolBar" )->show();
else toolBar( "mainToolBar" )->hide(); else toolBar( "mainToolBar" )->hide();
} }
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_viewToolBar" ) ) { if ( sender()->name() == TQString( "show_viewToolBar" ) ) {
Options::setShowViewToolBar( show ); Options::setShowViewToolBar( show );
if ( show ) toolBar( "viewToolBar" )->show(); if ( show ) toolBar( "viewToolBar" )->show();
else toolBar( "viewToolBar" )->hide(); else toolBar( "viewToolBar" )->hide();
} }
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_statusBar" ) ) { if ( sender()->name() == TQString( "show_statusBar" ) ) {
Options::setShowStatusBar( show ); Options::setShowStatusBar( show );
if ( show ) statusBar()->show(); if ( show ) statusBar()->show();
else statusBar()->hide(); else statusBar()->hide();
} }
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_sbAzAlt" ) ) { if ( sender()->name() == TQString( "show_sbAzAlt" ) ) {
Options::setShowAltAzField( show ); Options::setShowAltAzField( show );
if ( show ) { if ( show ) {
//To preserve the order (AzAlt before RADec), we have to remove //To preserve the order (AzAlt before RADec), we have to remove
@ -994,7 +994,7 @@ void KStars::slotShowGUIItem( bool show ) {
} }
} }
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_sbRADec" ) ) { if ( sender()->name() == TQString( "show_sbRADec" ) ) {
Options::setShowRADecField( show ); Options::setShowRADecField( show );
if ( show ) { if ( show ) {
TQString s = "000d 00m 00s, +00d 00\' 00\""; //only need this to set the width TQString s = "000d 00m 00s, +00d 00\' 00\""; //only need this to set the width
@ -1008,13 +1008,13 @@ void KStars::slotShowGUIItem( bool show ) {
//InfoBoxes: we only change options here; these are also connected to slots in //InfoBoxes: we only change options here; these are also connected to slots in
//InfoBoxes that actually toggle the display. //InfoBoxes that actually toggle the display.
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_boxes" ) ) if ( sender()->name() == TQString( "show_boxes" ) )
Options::setShowInfoBoxes( show ); Options::setShowInfoBoxes( show );
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_time_box" ) ) if ( sender()->name() == TQString( "show_time_box" ) )
Options::setShowTimeBox( show ); Options::setShowTimeBox( show );
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_location_box" ) ) if ( sender()->name() == TQString( "show_location_box" ) )
Options::setShowGeoBox( show ); Options::setShowGeoBox( show );
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "show_focus_box" ) ) if ( sender()->name() == TQString( "show_focus_box" ) )
Options::setShowFocusBox( show ); Options::setShowFocusBox( show );
} }

@ -82,7 +82,7 @@ OpsCatalog::~OpsCatalog() {}
void OpsCatalog::updateDisplay() { void OpsCatalog::updateDisplay() {
//Modify display according to settings in the CatalogList //Modify display according to settings in the CatalogList
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "CatalogList" ) ) if ( sender()->name() == TQString( "CatalogList" ) )
Options::setShowDeepSky( true ); Options::setShowDeepSky( true );
Options::setShowMessier( showMessier->isOn() ); Options::setShowMessier( showMessier->isOn() );

@ -58,7 +58,7 @@ void OpsSolarSystem::slotCometWidgets( bool on ) {
void OpsSolarSystem::slotSelectPlanets() { void OpsSolarSystem::slotSelectPlanets() {
bool b=true; bool b=true;
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "showNonePlanets" ) ) b = false; if ( sender()->name() == TQString( "showNonePlanets" ) ) b = false;
kcfg_ShowSun->setChecked( b ); kcfg_ShowSun->setChecked( b );
kcfg_ShowMoon->setChecked( b ); kcfg_ShowMoon->setChecked( b );

@ -307,11 +307,11 @@ void AltVsTime::slotHighlight(void) {
//move input focus to the next logical widget //move input focus to the next logical widget
void AltVsTime::slotAdvanceFocus(void) { void AltVsTime::slotAdvanceFocus(void) {
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "nameBox" ) ) avtUI->addButton->setFocus(); if ( sender()->name() == TQString( "nameBox" ) ) avtUI->addButton->setFocus();
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "raBox" ) ) avtUI->decBox->setFocus(); if ( sender()->name() == TQString( "raBox" ) ) avtUI->decBox->setFocus();
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "decbox" ) ) avtUI->addButton->setFocus(); if ( sender()->name() == TQString( "decbox" ) ) avtUI->addButton->setFocus();
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "longBox" ) ) avtUI->latBox->setFocus(); if ( sender()->name() == TQString( "longBox" ) ) avtUI->latBox->setFocus();
if ( TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()))->name() == TQString( "latBox" ) ) avtUI->updateButton->setFocus(); if ( sender()->name() == TQString( "latBox" ) ) avtUI->updateButton->setFocus();
} }
void AltVsTime::slotClear(void) { void AltVsTime::slotClear(void) {

@ -486,7 +486,7 @@ void RandomQueryDlg::slotTransChanged(const TQString&)
{ {
mw->verify->setDefault(true); mw->verify->setDefault(true);
bool suggestions = Prefs::suggestions(); bool suggestions = Prefs::suggestions();
if ( suggestions && sender() && TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())) -> isA ("TQComboBox") ) if ( suggestions && sender() && sender() -> isA ("TQComboBox") )
{ {
TQLineEdit* edit = ((TQComboBox*) sender()) -> lineEdit(); TQLineEdit* edit = ((TQComboBox*) sender()) -> lineEdit();
resetField (edit); resetField (edit);
@ -497,7 +497,7 @@ void RandomQueryDlg::slotTransChanged(const TQString&)
else else
mw->status -> clear(); mw->status -> clear();
} }
else if ( ! suggestions && sender() && TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender())) -> isA ("TQLineEdit") ) else if ( ! suggestions && sender() && sender() -> isA ("TQLineEdit") )
resetField ((TQLineEdit*) sender()); resetField ((TQLineEdit*) sender());
} }

@ -1051,7 +1051,7 @@ void KWordQuizView::slotCheckedAnswer( int i )
bool KWordQuizView::eventFilter( TQObject * o, TQEvent * e ) bool KWordQuizView::eventFilter( TQObject * o, TQEvent * e )
{ {
if (TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(cellEditor)) if (o == cellEditor)
{ {
if ( e->type() == TQEvent::KeyPress ) if ( e->type() == TQEvent::KeyPress )
{ {

@ -474,7 +474,7 @@ void ExtDateTimeEditor::mousePressEvent( TQMouseEvent *e )
*/ */
bool ExtDateTimeEditor::eventFilter( TQObject *o, TQEvent *e ) bool ExtDateTimeEditor::eventFilter( TQObject *o, TQEvent *e )
{ {
if ( TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(this) ) { if ( o == this ) {
if ( e->type() == TQEvent::KeyPress ) { if ( e->type() == TQEvent::KeyPress ) {
TQKeyEvent *ke = (TQKeyEvent*)e; TQKeyEvent *ke = (TQKeyEvent*)e;
switch ( ke->key() ) { switch ( ke->key() ) {

Loading…
Cancel
Save