From b0f8eef013163b2098c2bb07e93cb9b194338b80 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 14 Jan 2024 12:33:20 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit 3b3f9ec8f31978030c17309fae48335bea5c1587) --- kaddressbook/customfieldswidget.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'kaddressbook/customfieldswidget.cpp') diff --git a/kaddressbook/customfieldswidget.cpp b/kaddressbook/customfieldswidget.cpp index 18a10677a..39867b0ec 100644 --- a/kaddressbook/customfieldswidget.cpp +++ b/kaddressbook/customfieldswidget.cpp @@ -69,8 +69,8 @@ AddFieldDialog::AddFieldDialog( TQWidget *parent, const char *name ) mGlobal->setChecked( true ); layout->addMultiCellWidget( mGlobal, 2, 2, 0, 1 ); - connect( mTitle, TQT_SIGNAL( textChanged( const TQString& ) ), - this, TQT_SLOT( nameChanged( const TQString& ) ) ); + connect( mTitle, TQ_SIGNAL( textChanged( const TQString& ) ), + this, TQ_SLOT( nameChanged( const TQString& ) ) ); TDEAcceleratorManager::manage( this ); @@ -151,33 +151,33 @@ void FieldWidget::addField( const TQString &identifier, const TQString &title, if ( type == "integer" ) { TQSpinBox *wdg = new TQSpinBox( 0, 1000, 1, this ); record.mWidget = wdg; - connect( wdg, TQT_SIGNAL( valueChanged( int ) ), - this, TQT_SIGNAL( changed() ) ); + connect( wdg, TQ_SIGNAL( valueChanged( int ) ), + this, TQ_SIGNAL( changed() ) ); } else if ( type == "boolean" ) { TQCheckBox *wdg = new TQCheckBox( this ); record.mWidget = wdg; - connect( wdg, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SIGNAL( changed() ) ); + connect( wdg, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SIGNAL( changed() ) ); } else if ( type == "date" ) { TQDateEdit *wdg = new TQDateEdit( this ); record.mWidget = wdg; - connect( wdg, TQT_SIGNAL( valueChanged( const TQDate& ) ), - this, TQT_SIGNAL( changed() ) ); + connect( wdg, TQ_SIGNAL( valueChanged( const TQDate& ) ), + this, TQ_SIGNAL( changed() ) ); } else if ( type == "time" ) { TQTimeEdit *wdg = new TQTimeEdit( this ); record.mWidget = wdg; - connect( wdg, TQT_SIGNAL( valueChanged( const TQTime& ) ), - this, TQT_SIGNAL( changed() ) ); + connect( wdg, TQ_SIGNAL( valueChanged( const TQTime& ) ), + this, TQ_SIGNAL( changed() ) ); } else if ( type == "datetime" ) { TQDateTimeEdit *wdg = new TQDateTimeEdit( this ); record.mWidget = wdg; - connect( wdg, TQT_SIGNAL( valueChanged( const TQDateTime& ) ), - this, TQT_SIGNAL( changed() ) ); + connect( wdg, TQ_SIGNAL( valueChanged( const TQDateTime& ) ), + this, TQ_SIGNAL( changed() ) ); } else if ( type == "text" ) { TQLineEdit *wdg = new TQLineEdit( this ); record.mWidget = wdg; - connect( wdg, TQT_SIGNAL( textChanged( const TQString& ) ), - this, TQT_SIGNAL( changed() ) ); + connect( wdg, TQ_SIGNAL( textChanged( const TQString& ) ), + this, TQ_SIGNAL( changed() ) ); } record.mLabel->show(); @@ -382,10 +382,10 @@ CustomFieldsWidget::CustomFieldsWidget( TDEABC::AddressBook *ab, { initGUI(); - connect( mAddButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( addField() ) ); - connect( mRemoveButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( removeField() ) ); + connect( mAddButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addField() ) ); + connect( mRemoveButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( removeField() ) ); - connect( mFieldWidget, TQT_SIGNAL( changed() ), this, TQT_SLOT( setModified() ) ); + connect( mFieldWidget, TQ_SIGNAL( changed() ), this, TQ_SLOT( setModified() ) ); } void CustomFieldsWidget::loadContact( TDEABC::Addressee *addr ) -- cgit v1.2.1